Go to the documentation of this file.
44 #ifndef GNSSTK_TIME_NAMED_FILE_STREAM_HPP
45 #define GNSSTK_TIME_NAMED_FILE_STREAM_HPP
61 template <
class BaseStream>
71 std::ios::openmode mode = std::ios::in)
79 virtual void open(
const char* fs, std::ios::openmode mode = std::ios::in)
123 std::string::size_type i = newFilename.rfind(
'/');
124 std::string dir(newFilename.substr(0, i));
128 std::cout <<
"Creating directory " << dir << std::endl;
158 #endif // GNSSTK_TIME_NAMED_FILE_STREAM_HPP
CommonTime getCurrentTime(void) const
std::string currentFilename
Name of the current output file.
void setFilespec(const std::string fs)
std::string getCurrentFilename(void) const
bool updateFileName(const CommonTime &t=SystemTime())
TimeNamedFileStream(const std::string fs, std::ios::openmode mode=std::ios::in)
std::string filespec
Pattern on which to create new files.
virtual void open(const char *fs, std::ios::openmode mode=std::ios::in)
virtual ~TimeNamedFileStream(void)
int makeDir(const std::string &path, unsigned mode)
std::string printTime(const CommonTime &t, const std::string &fmt)
std::string getFilespec(void) const
CommonTime currentTime
The time used to generate currentFilename.
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:42