OpenWalnut
1.5.0dev
|
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. More... | |
OW_API_DEPRECATED void | setFileName (std::string fname) |
Reset file name and checks if the file already exists in case of non overwriting is specified. More... | |
void | setFilename (std::string fname) |
Reset file name and checks if the file already exists in case of non overwriting is specified. More... | |
Protected Attributes | |
std::string | m_fname |
Absolute path of the file to write to. More... | |
bool | m_overwrite |
flag indicating if the file may be overwritten (true) or not (false) More... | |
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 33 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 39 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 44 of file WWriter.cpp.
References m_fname, and m_overwrite.
Referenced by setFileName(), and WWriter().
|
protected |
Absolute path of the file to write to.
Definition at line 67 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 68 of file WWriter.h.
Referenced by setFilename().