OpenWalnut
1.2.5
|
Write some data to the given file. More...
#include <WWriter.h>
Public Member Functions | |
WWriter (std::string fname, bool overwrite=false) | |
Creates a writer object for writing something to a file. | |
void | setFileName (std::string fname) |
Reset file name and checks if the file already exists in case of non overwriting is specified. |
Protected Attributes | |
std::string | m_fname |
Absolute path of the file to write to. | |
bool | m_overwrite |
flag indicating if the file may be overwritten (true) or not (false) |
Write some data to the given file.
This base class is just for file management (file exists, etc.) Subclasses may use those mechanisms and specify their file format which is not the purpose of this base class.
WWriter::WWriter | ( | std::string | fname, |
bool | overwrite = false |
||
) |
Creates a writer object for writing something to a file.
Use the flags to specify the behaviour.
fname | path to the target file where stuff will be written to |
overwrite | If true existing files will be overwritten |
Definition at line 37 of file WWriter.cpp.
References setFileName().
void WWriter::setFileName | ( | std::string | fname | ) |
Reset file name and checks if the file already exists in case of non overwriting is specified.
fname | file name |
Definition at line 43 of file WWriter.cpp.
References m_fname, and m_overwrite.
Referenced by WWriter().
|
protected |
Absolute path of the file to write to.
Definition at line 58 of file WWriter.h.
Referenced by setFileName(), WWriterDendrogram::write(), WWriterFiberVTK::writeFibs(), and WWriterMatrixSymVTK::writeTable().
|
protected |
flag indicating if the file may be overwritten (true) or not (false)
Definition at line 59 of file WWriter.h.
Referenced by setFileName().