36#ifndef OUTPUTFILEHANDLER_HPP_
37#define OUTPUTFILEHANDLER_HPP_
47typedef 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;
177 bool cleanOutputDirectory);
FileFinder CopyFileTo(const FileFinder &rSourceFile) const
static void AddTrailingSlash(std::string &rDirectory)
static std::string GetChasteTestOutputDirectory()
static const std::string SIG_FILE_NAME
std::string GetOutputDirectoryFullPath() const
void SetArchiveDirectory() const
FileFinder FindFile(std::string leafName) const
std::string MakeFoldersAndReturnFullPath(const std::string &rDirectory) const
out_stream OpenOutputFile(const std::string &rFileName, std::ios_base::openmode mode=std::ios::out|std::ios::trunc) const
void CommonConstructor(const std::string &rDirectory, bool cleanOutputDirectory)
std::string mDirectory
The directory to store output files in (always ends in "/")
std::string GetRelativePath() const