OpenWalnut  1.2.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
WWriterDendrogram Class Reference

Writes a Dendrogram file. More...

#include <WWriterDendrogram.h>

+ Inheritance diagram for WWriterDendrogram:

Public Member Functions

 WWriterDendrogram (const boost::filesystem::path &path, bool overwrite=false)
 Creates a writer object for Dendrogram file writing.
void write (boost::shared_ptr< const WDendrogram > dendrogram) const
 Writes finaly the given dendrogram to the previously specified file.
- Public Member Functions inherited from WWriter
 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.

Additional Inherited Members

- Protected Attributes inherited from WWriter
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)

Detailed Description

Writes a Dendrogram file.

Definition at line 44 of file WWriterDendrogram.h.

Constructor & Destructor Documentation

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 41 of file WWriterDendrogram.cpp.

Member Function Documentation

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

Writes finaly the given dendrogram to the previously specified file.

Parameters
dendrogramThe dendrogram to save

Definition at line 46 of file WWriterDendrogram.cpp.

References WWriter::m_fname.


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