/** Implementation file to open a CDAS format data file on disk \author Troy Porter \date 01 July 2003 \version $Id: CDASEventFile.h 14717 2009-09-17 20:24:36Z lukas $ */ #ifndef _io_CDASEventFile_h_ #define _io_CDASEventFile_h_ #include static const char CvsId_io_CDASEventFile[] = "$Id: CDASEventFile.h 14717 2009-09-17 20:24:36Z lukas $"; namespace io { /** \class CDASEventFile \brief Interface for CDAS file reading \author Troy Porter \date 31 Jan 2004 \ingroup cdas */ class CDASEventFile : public VROOTFile { public: CDASEventFile(); CDASEventFile(const std::string& theFilename, const Mode theMode = eRead); virtual ~CDASEventFile(); void Open(const std::string& theFilename, const Mode theMode = eRead); void Close(); 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; }; } #endif // Configure (x)emacs for this file ... // Local Variables: // mode: c++ // compile-command: "make -C .. -k" // End: