#ifndef __JLANG__JASCIIFILEREADER__ #define __JLANG__JASCIIFILEREADER__ #include #include "JLang/JAccessibleStream.hh" #include "JLang/JStreamObjectIterator.hh" /** * \author mdejong */ namespace JLANG {} namespace JPP { using namespace JLANG; } namespace JLANG { /** * Object reading from ASCII file. * * This class implements the JAccessibleObjectIterator interface. */ template class JASCIIFileReader : public JAccessibleInputStream, public JStreamObjectIterator , public JAccessibleObjectIterator { public: /** * Default constructor. */ JASCIIFileReader() : JAccessibleInputStream(), JStreamObjectIterator(static_cast(*this)) {} /** * Constructor. * * \param file_name file name */ JASCIIFileReader(const char* file_name) : JAccessibleInputStream(file_name), JStreamObjectIterator(static_cast(*this)) {} }; } #endif