OpenWalnut
1.5.0dev
|
Writes a Dendrogram file. More...
#include <WWriterDendrogram.h>
Public Member Functions | |
WWriterDendrogram (const boost::filesystem::path &path, bool overwrite=false) | |
Creates a writer object for Dendrogram file writing. More... | |
void | write (std::shared_ptr< const WDendrogram > dendrogram) const |
Writes finaly the given dendrogram to the previously specified file. More... | |
Public Member Functions inherited from WWriter | |
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... | |
Additional Inherited Members | |
Protected Attributes inherited from WWriter | |
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... | |
Writes a Dendrogram file.
Definition at line 39 of file WWriterDendrogram.h.
WWriterDendrogram::WWriterDendrogram | ( | const boost::filesystem::path & | path, |
bool | overwrite = false |
||
) |
Creates a writer object for Dendrogram file writing.
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 WWriterDendrogram.cpp.
void WWriterDendrogram::write | ( | std::shared_ptr< const WDendrogram > | dendrogram | ) | const |
Writes finaly the given dendrogram to the previously specified file.
dendrogram | The dendrogram to save |
Definition at line 42 of file WWriterDendrogram.cpp.
References WWriter::m_fname.
Referenced by WMWriteDendrogram::moduleMain().