30#include"bitpit_common.hpp"
32#include"fileHandler.hpp"
42 : directory(
"./"), name(
"file"), appendix(
"dat"),
43 series(false), counter(0),
44 parallel(false), block(0) {
56 : directory(dir_), name(name_), appendix(app_),
57 series(false), counter(0),
58 parallel(false), block(0) {
76 directory = other.directory ;
78 appendix = other.appendix ;
79 series = other.series ;
80 counter = other.counter ;
81 parallel = other.parallel ;
102 std::stringstream filename ;
104 if (!directory.empty()) filename << directory <<
"/";
108 filename <<
"."<< appendix ;
110 return filename.str() ;
Creates file names and checks status.
std::string getPath() const
void setParallel(bool p_)
static BITPIT_PUBLIC_API const int INVALID_COUNTER
const std::string & getDirectory() const
void setDirectory(const std::string &d_)
const std::string & getAppendix() const
void setName(const std::string &n_)
FileHandler & operator=(const FileHandler &other)
const std::string & getName() const
void setAppendix(const std::string &a_)
std::string zeroPadNumber(int nchars, int num)