00001 #ifndef __PXXIReadoutDataPayload__H__ 00002 #define __PXXIReadoutDataPayload__H__ 00010 00011 #include "payloads-unpacker/base/PXXTypes.h" 00012 #include "payloads-unpacker/base/PXXPointerCasts.h" 00013 #include "payloads-unpacker/payloads/PXXIReadoutRequest.h" 00014 00015 class PXXIReadoutDataPayload 00016 { 00017 public: 00018 00019 00023 virtual ~PXXIReadoutDataPayload(){} 00024 //------------------------------------------------------------------------------ 00025 00029 virtual Bool8b_t IsLastPayloadOfGroup() const = 0; 00030 //------------------------------------------------------------------------------ 00031 00035 virtual Int32b_t GetRequestUID() const = 0; 00036 //------------------------------------------------------------------------------ 00037 00041 virtual Short16b_t GetReadoutDataPayloadNumber() const = 0; 00042 //------------------------------------------------------------------------------ 00043 00044 protected: 00045 00049 PXXIReadoutDataPayload(){} 00050 //------------------------------------------------------------------------------ 00051 00052 private: 00053 00054 ClassDef(PXXIReadoutDataPayload, 0) // TriggerRequestPayload interface 00055 00056 }; 00057 00058 #ifdef __USEROOT__ // compile with ROOT 00059 typedef PXXIReadoutDataPayload* PXXIReadoutDataPayloadPtr; 00060 #else // compile with IceTray 00061 typedef shared_ptr<PXXIReadoutDataPayload> PXXIReadoutDataPayloadPtr; 00062 #endif 00063 00064 00065 #endif // __PXXIReadoutDataPayload__H__