00001
00011 #ifndef TARTDATAFORMAT_H
00012 #define TARTDATAFORMAT_H
00013 #include "TArtDataSource.h"
00017 class TArtDataFormat {
00018 protected:
00019 TArtDataFormat();
00020 unsigned short *fBlock;
00021
00022 unsigned int fBlockLen;
00023 ArtBlockType_t fBlockType;
00024 unsigned int fPointer;
00025
00026 public:
00030 virtual void Delete();
00040 virtual ArtBlockStat_t GetNextBlock(TArtDataSource* source) = 0;
00041
00055 virtual ArtEventStat_t GetNextEvent(unsigned short* buf,
00056 unsigned short* runbuf,
00057 unsigned short*rnum,
00058 int &nw) = 0;
00059
00071 virtual void FindSegment(unsigned short *evtdata,
00072 int *evtsize,
00073 int *addr,
00074 int *nw,
00075 int *maxsegid) = 0;
00076
00080 virtual ~TArtDataFormat();
00081
00085 static const unsigned int kMaxBlockLen;
00086 };
00087 #endif // end of #ifdef TARTDATAFORMAT_H