/** Implementation file to open a Radio format data file on disk \author Harm Schoorlemmer \date Aug 2009 \version $id: $ */ #ifndef _io_RadioFileMAXIMA_h_ #define _io_RadioFileMAXIMA_h_ #include #include static const char CvsId_io_RadioFileMAXIMA[] = "$Id$"; namespace evt { class Event; } namespace revt { class REvent; } namespace io { class RadioFileMAXIMA : public VEventFile { public: RadioFileMAXIMA(); RadioFileMAXIMA(const std::string& theFilename, const Mode theMode = eRead); virtual ~RadioFileMAXIMA(); void Open(const std::string& theFilename, const Mode theMode = eRead); void Close(); Status FileStatus(); Status Read(evt::Event& theEvent); void Write(const evt::Event& theEvent); Status FindEvent(const unsigned int eventId); Status GotoPosition(const unsigned int position); int GetNEvents(); private: int fCurrentEvent; mutable std::ifstream fDiskStream; }; } #endif // Configure (x)emacs for this file ... // Local Variables: // mode: c++ // compile-command: "make -C .. -k" // End: