OpenWalnut  1.5.0dev
Public Member Functions | List of all members
WWriterDendrogram Class Reference

Writes a Dendrogram file. More...

#include <WWriterDendrogram.h>

+ Inheritance diagram for WWriterDendrogram:
+ Collaboration diagram for WWriterDendrogram:

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...
 

Detailed Description

Writes a Dendrogram file.

Definition at line 39 of file WWriterDendrogram.h.

Constructor & Destructor Documentation

◆ WWriterDendrogram()

WWriterDendrogram::WWriterDendrogram ( const boost::filesystem::path &  path,
bool  overwrite = false 
)

Creates a writer object for Dendrogram file writing.

Parameters
pathto the target file where stuff will be written to
overwriteIf true existing files will be overwritten

Definition at line 37 of file WWriterDendrogram.cpp.

Member Function Documentation

◆ write()

void WWriterDendrogram::write ( std::shared_ptr< const WDendrogram dendrogram) const

Writes finaly the given dendrogram to the previously specified file.

Parameters
dendrogramThe dendrogram to save

Definition at line 42 of file WWriterDendrogram.cpp.

References WWriter::m_fname.

Referenced by WMWriteDendrogram::moduleMain().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: