![]() |
|
Go to the source code of this file.
Classes | |
class | File |
Enumerations | |
enum class | FileType : unsigned char { NO_FILE = 0 , ONE_FILE = 1 , MULTIPLE_FILES = 2 , MULTIPLE_FILES_PADDED = 3 } |
With FileType options, one is able to choose if data is to be read/written from/into no or single or multiple files. More... | |
Functions | |
std::string | to_string_padded (unsigned int value) |
Pads the number This function tries to pad the number to 4 digits, which is used when you create multiple files with padded numbers. Any numbers larger than 4 digits return unmodified. More... | |
std::ostream & | operator<< (std::ostream &os, FileType fileType) |
Writes the FileType as a human-readable string into the output stream 'os'. More... | |
std::istream & | operator>> (std::istream &is, FileType &fileType) |
Reads the FileType from an input stream 'is'. More... | |
Variables | |
const unsigned | NEVER = static_cast<const unsigned int>(-1) |
With FileType options, one is able to choose if data is to be read/written from/into no or single or multiple files.
std::ostream& operator<< | ( | std::ostream & | os, |
FileType | fileType | ||
) |
Writes the FileType as a human-readable string into the output stream 'os'.
[in,out] | os | output stream to which the fileType is written |
[in] | fileType | the fileType that has to be written to the output stream |
References ERROR, logger, MULTIPLE_FILES, MULTIPLE_FILES_PADDED, NO_FILE, and ONE_FILE.
std::istream& operator>> | ( | std::istream & | is, |
FileType & | fileType | ||
) |
Reads the FileType from an input stream 'is'.
[in,out] | is | The input stream from which the fileType is read |
[in] | fileType | The fileType that has to be read from the input stream |
References ERROR, logger, MULTIPLE_FILES, MULTIPLE_FILES_PADDED, NO_FILE, ONE_FILE, and oomph::Global_string_for_annotation::string().
Pads the number This function tries to pad the number to 4 digits, which is used when you create multiple files with padded numbers. Any numbers larger than 4 digits return unmodified.
value | The value to modify |
References out(), and Eigen::value.
Referenced by File::getFullName(), and DPMBase::removeOldFiles().
Referenced by BaseCG::BaseCG(), File::File(), CGHandler::finish(), DPMBase::forceWriteOutputFiles(), main(), File::read(), DPMBase::resetFileCounter(), File::saveCurrentTimeStepNoFileTypeCheck(), Calibration::setOutput(), Wall::setupInitialConditions(), and File::writeFirstAndLastTimeStep().