Class which doesn't create any file output. To be used only for testing purposes.
More...
|
| | NullWriter () |
| | Creates an "uninitialized" NullWriter object.
|
| |
| | NullWriter (const std::string &) |
| | Creates a NullWriter object with a useless base name.
|
| |
| | NullWriter (const std::string &, const std::string &) |
| | Creates a NullWriter object with useless base and directory names.
|
| |
| virtual | ~NullWriter () |
| | Destroys the NullWriter object.
|
| |
| void | writeParticles (const ParticleContainer &particles, int iteration, int total) override |
| | Logs the type, mass, position, velocity and force of a ParticleContainer.
|
| |
| | FileWriter () |
| | Creates a new FileWriter with no file initialized.
|
| |
| | FileWriter (const std::string &filename) |
| | Creates a new FileWriter and opens the file with the given name.
|
| |
| virtual | ~FileWriter () |
| | Closes the opened file and destroys the FileWriter object.
|
| |
| void | openFile (const std::string &filename) |
| | Opens / creates the file with the given name.
|
| |
| void | closeFile () |
| | Closes the opened file if it exists, otherwise does nothing.
|
| |
| void | writeFile (const std::string &content, const std::string &filename="", int iteration=-1, int total=-1) |
| | Overwrites the contents of the file opened in m_file with a given string. On error, the program will terminate.
|
| |
Class which doesn't create any file output. To be used only for testing purposes.