#ifndef __JIO__JBINARYFILEREADER__ #define __JIO__JBINARYFILEREADER__ #include #include "JLang/JAccessibleBinaryStream.hh" #include "JLang/JObjectIterator.hh" #include "JIO/JStreamIO.hh" #include "JIO/JReaderObjectIterator.hh" /** * \author mdejong */ namespace JIO {} namespace JPP { using namespace JIO; } namespace JIO { using JLANG::JAccessibleBinaryInputStream; using JLANG::JAccessibleObjectIterator; /** * Object reading from binary file. * * This class implements the JLANG::JAccessibleObjectIterator interface. */ template class JBinaryFileReader : public JAccessibleBinaryInputStream, protected JStreamReader, public JReaderObjectIterator, public JAccessibleObjectIterator { public: /** * Default constructor. */ JBinaryFileReader() : JAccessibleBinaryInputStream(), JStreamReader (static_cast (*this)), JReaderObjectIterator(static_cast(*this)) {} }; } #endif