27 #include <boost/filesystem.hpp>
29 #include "../../common/WIOTools.h"
30 #include "../exceptions/WDHIOFailure.h"
34 : m_overwrite( overwrite )
Use this for IO error handling.
void setFilename(std::string fname)
Reset file name and checks if the file already exists in case of non overwriting is specified.
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.
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)
WWriter(std::string fname, bool overwrite=false)
Creates a writer object for writing something to a file.