#ifndef __JLANG__JASCIIFILEWRITER__ #define __JLANG__JASCIIFILEWRITER__ #include #include #include "JLang/JAccessibleStream.hh" #include "JLang/JStreamObjectOutput.hh" /** * \author mdejong */ namespace JLANG {} namespace JPP { using namespace JLANG; } namespace JLANG { /** * Object(s) writing to ASCII file. * * This class implements the JAccessibleObjectOutput interface. */ template class JASCIIFileWriter : public JAccessibleOutputStream, public JStreamObjectOutput , public JAccessibleObjectOutput { public: /** * Default constructor. */ JASCIIFileWriter() : JAccessibleOutputStream(), JStreamObjectOutput(static_cast(*this), "") {} /** * Constructor. * * \param file_name file name */ JASCIIFileWriter(const char* file_name) : JAccessibleOutputStream(file_name), JStreamObjectOutput(static_cast(*this), "") {} /** * Constructor. * * \param file_name file name * \param sep token separator */ JASCIIFileWriter(const char* file_name, const std::string& sep) : JAccessibleOutputStream(file_name), JStreamObjectOutput(static_cast(*this), sep) {} }; } #endif