![]() |
|
#include "File.h"#include <string>#include <sstream>#include <iostream>#include <cmath>#include <iomanip>#include "Logger.h"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... | |
| std::ostream & | operator<< (std::ostream &os, const File &o) |
| std::istream & | operator>> (std::istream &is, File &o) |
| std::ostream& operator<< | ( | std::ostream & | os, |
| const File & | o | ||
| ) |
| [in,out] | os | |
| [in] | o |
| 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, |
| File & | o | ||
| ) |
| [in,out] | is | |
| [in] | o |
| 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().