Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
buffer.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file buffer.h
1 #ifndef __BUFFER_H
2 #define __BUFFER_H
3 
4 #include "phenixTypes.h"
5 #include "BufferConstants.h"
6 #include "Event.h"
7 
8 
9 
10 #ifndef __CINT__
12 #else
13 class buffer {
14 #endif
15 
16 public:
17 
18  //** Constructors
19 
20  buffer();
21  virtual ~buffer();
22 
23  // this creates a new event on the next address
24  virtual Event * getEvent() = 0;
25 
26  virtual int * getEventData() = 0;
27 
28  virtual int isGood() const = 0;
29 
30  static int makeBuffer( PHDWORD *bp, const int allocatedsize, buffer **bptr);
31  static int i4swap (const int in);
32  static unsigned int u4swap (const unsigned int in);
33  static int i22swap (const int in);
34  static short i2swap (const short in);
35 
36 protected:
37 };
38 
39 #endif