36 #ifndef OUTPUTFILEHANDLER_HPP_ 37 #define OUTPUTFILEHANDLER_HPP_ 47 typedef std::shared_ptr<std::ofstream> out_stream;
71 bool cleanOutputDirectory =
true);
86 bool cleanOutputDirectory =
true);
127 std::ios_base::openmode mode=std::ios::out | std::ios::trunc)
const;
144 const std::string& rFileFormat,
145 std::ios_base::openmode mode=std::ios::out | std::ios::trunc)
const;
178 bool cleanOutputDirectory);
std::string MakeFoldersAndReturnFullPath(const std::string &rDirectory) const
static const std::string SIG_FILE_NAME
static void AddTrailingSlash(std::string &rDirectory)
FileFinder CopyFileTo(const FileFinder &rSourceFile) const
std::string GetOutputDirectoryFullPath() const
out_stream OpenOutputFile(const std::string &rFileName, std::ios_base::openmode mode=std::ios::out|std::ios::trunc) const
void SetArchiveDirectory() const
FileFinder FindFile(std::string leafName) const
std::string GetRelativePath() const
std::string mDirectory
The directory to store output files in (always ends in "/")
static std::string GetChasteTestOutputDirectory()
void CommonConstructor(const std::string &rDirectory, bool cleanOutputDirectory)
OutputFileHandler(const std::string &rDirectory, bool cleanOutputDirectory=true)