29 #include <boost/filesystem.hpp>
31 #include "../../common/WAssert.h"
32 #include "../../common/WIOTools.h"
33 #include "../../common/datastructures/WDendrogram.h"
34 #include "../exceptions/WDHIOFailure.h"
35 #include "WWriterDendrogram.h"
38 :
WWriter( path.string(), overwrite )
44 std::ofstream file(
m_fname.c_str() );
45 file << dendrogram->toString();
WWriterDendrogram(const boost::filesystem::path &path, bool overwrite=false)
Creates a writer object for Dendrogram file writing.
void write(std::shared_ptr< const WDendrogram > dendrogram) const
Writes finaly the given dendrogram to the previously specified file.
Write some data to the given file.
std::string m_fname
Absolute path of the file to write to.