#ifndef _io_IoAugerEventFile_h_
#define _io_IoAugerEventFile_h_

/**
   \file
   Declaration of class

   \author 
   \version $Id: IoAugerEventFile.h 14717 2009-09-17 20:24:36Z lukas $
   \date 22 Jun 2004
*/

#include <io/VEventFile.h>
#include <AugerFile.h>

static const char CvsId_io_IoAugerEventFile[] = 
  "$Id: IoAugerEventFile.h 14717 2009-09-17 20:24:36Z lukas $";


namespace io {

  /**
    \class IoAugerEventFile IoAugerEventFile.h "io/IoAugerEventFile.h"

    \brief

    \author Stefano Argiro`
    \date 22 Jun 2004
    \ingroup cdas
  */

  class IoAugerEventFile : public VEventFile {

  public:
    IoAugerEventFile();    
    IoAugerEventFile(const std::string& filename, const Mode theMode = eRead);

    virtual ~IoAugerEventFile();

    void Open(const std::string& filename, const Mode theMode = eRead);
    void Close();

    Status Read(evt::Event& event);

    void Write(const evt::Event& event);

    Status FindEvent(const unsigned int n);
    Status GotoPosition(const unsigned int n);

    int GetNEvents();

  private:
    AugerFile::Mode ConvertMode(const Mode);
    AugerFile* fAugerFile;

  };

}


#endif

// Configure (x)emacs for this file ...
// Local Variables:
// mode: c++
// compile-command: "make -C .. -k"
// End: