File indexing completed on 2025-08-03 08:20:43
0001 #ifndef __BUFFER_H
0002 #define __BUFFER_H
0003
0004 #include "phenixTypes.h"
0005 #include "BufferConstants.h"
0006 #include "Event.h"
0007
0008
0009 #ifndef __CINT__
0010 class WINDOWSEXPORT buffer {
0011 #else
0012 class buffer {
0013 #endif
0014
0015 public:
0016
0017
0018
0019 buffer();
0020 virtual ~buffer();
0021
0022
0023 virtual Event * getEvent() = 0;
0024
0025 virtual int * getEventData() = 0;
0026
0027 virtual int isGood() const = 0;
0028
0029 virtual int getBufferSequence() const = 0;
0030
0031 static int makeBuffer( PHDWORD *bp, const int allocatedsize, buffer **bptr);
0032 static int i4swap (const int in);
0033 static unsigned int u4swap (const unsigned int in);
0034 static int i22swap (const int in);
0035 static short i2swap (const short in);
0036
0037 protected:
0038 };
0039
0040 #endif