MercuryDPM
Beta
|
#include <fstream>
#include <cstdlib>
Go to the source code of this file.
Classes | |
class | File |
Enumerations | |
enum | FileType : unsigned char { FileType::NO_FILE = 0, FileType::ONE_FILE = 1, FileType::MULTIPLE_FILES = 2, FileType::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... | |
|
strong |
With FileType options, one is able to choose if data is to be read/written from/into no or single or multiple files.
Definition at line 35 of file File.h.
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 |
Definition at line 72 of file File.cc.
References 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 |
Definition at line 95 of file File.cc.
References MULTIPLE_FILES, MULTIPLE_FILES_PADDED, NO_FILE, and ONE_FILE.
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.
value | The value to modify |
Definition at line 60 of file File.cc.
Referenced by DPMBase::readNextArgument().