00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef StHbtAsciiReader_hh
00018 #define StHbtAsciiReader_hh
00019
00020
00021
00022 class StHbtEvent;
00023
00024 #include "StHbtMaker/Infrastructure/StHbtString.hh"
00025 #include "StHbtMaker/Base/StHbtEventReader.hh"
00026
00027
00028 class StHbtAsciiReader : public StHbtEventReader{
00029
00030 private:
00031 unsigned short mStHbtEventVersion;
00032 unsigned short mStHbtTrackVersion;
00033 unsigned short mStHbtV0Version;
00034
00035 ifstream* mInputStream;
00036 ofstream* mOutputStream;
00037 const char* mFileName;
00038
00039 public:
00040 StHbtAsciiReader();
00041 StHbtAsciiReader(char* FileName);
00042 ~StHbtAsciiReader();
00043
00044
00045
00046 StHbtEvent* ReturnHbtEvent();
00047 int WriteHbtEvent(StHbtEvent*);
00048 int Init(const char* ReadWrite, StHbtString& Message);
00049 void Finish();
00050
00051
00052 void SetFileName(char* file);
00053 #ifdef __ROOT__
00054 ClassDef(StHbtAsciiReader, 0)
00055 #endif
00056 };
00057
00058 inline void StHbtAsciiReader::SetFileName(char* file){mFileName=file;}
00059
00060
00061 #endif