1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef TESTDIR_HH #define TESTDIR_HH #include <filesystem> // IWYU pragma: export class TestDir { public: TestDir(); ~TestDir(); TestDir(TestDir const&) = delete; TestDir& operator=(TestDir const&) = delete; bool good() const { return !path_.empty(); }; std::filesystem::path const& path() const { return path_; }; private: std::filesystem::path path_; }; #endif // TESTDIR_HH