Sha256: 031fb06839ea8ad15312f185bbe1e80423518868b44ac3b7fbaf576aaa54d91a
Contents?: true
Size: 736 Bytes
Versions: 16
Compression:
Stored size: 736 Bytes
Contents
#pragma once #include <string> #include <boost/filesystem/path.hpp> #include <boost/regex.hpp> /** * Class to create a temporary directory with a unique name * and destroy it once it is no longer needed. * * This was taken directly from file_util/tests -- might be * worthwhile to include a testutils directory for common test * code in leatherman? * */ class temp_directory { public: temp_directory(); ~temp_directory(); std::string const& get_dir_name() const; private: std::string dir_name; }; /** Generates a unique string for use as a file path. */ boost::filesystem::path unique_fixture_path(); boost::regex TEMP_FILE_REGEX("\\Atemp_file.*"); boost::regex TEMP_DIR_REGEX("\\Afile_util_fixture_.*");
Version data entries
16 entries across 16 versions & 2 rubygems