#include <RawRom.h>
Inheritance diagram for DayaBay::RawRom:
Public Member Functions | |
RawRom () | |
Default Constructor. | |
virtual | ~RawRom () |
Default Destructor. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
const DayaBay::RawEventHeader * | header () const |
Retrieve const pointer to RawEventHeader. | |
void | setHeader (DayaBay::RawEventHeader *value) |
Update pointer to RawEventHeader. | |
int | size () const |
Retrieve const Total size of bytes including header. | |
void | setSize (int value) |
Update Total size of bytes including header. | |
int | slot () const |
Retrieve const Slot number. | |
void | setSlot (int value) |
Update Slot number. | |
int | type () const |
Retrieve const Module type. | |
void | setType (int value) |
Update Module type. | |
int | cbltGA () const |
Retrieve const VME module Geographic Address. | |
void | setCbltGA (int value) |
Update VME module Geographic Address. | |
int | cbltModuleType () const |
Retrieve const cble module type. | |
void | setCbltModuleType (int value) |
Update cble module type. | |
int | cbltDataLength () const |
Retrieve const bytes from CBLT head to foot. | |
void | setCbltDataLength (int value) |
Update bytes from CBLT head to foot. | |
Static Public Member Functions | |
static void * | operator new (size_t size) |
operator new | |
static void * | operator new (size_t size, void *pObj) |
placement operator new it is needed by libstdc++ 3.2.3 (e.g. | |
static void | operator delete (void *p) |
operator delete | |
static void | operator delete (void *p, void *pObj) |
placement operator delete not sure if really needed, but it does not harm | |
Private Attributes | |
DayaBay::RawEventHeader * | m_header |
pointer to RawEventHeader | |
int | m_size |
Total size of bytes including header. | |
int | m_slot |
Slot number. | |
int | m_type |
Module type. | |
int | m_cbltGA |
VME module Geographic Address. | |
int | m_cbltModuleType |
cble module type | |
int | m_cbltDataLength |
bytes from CBLT head to foot |
Definition at line 40 of file RawRom.h.
DayaBay::RawRom::RawRom | ( | ) | [inline] |
Default Constructor.
Definition at line 45 of file RawRom.h.
00045 : m_header(0), 00046 m_size(0), 00047 m_slot(0), 00048 m_type(0), 00049 m_cbltGA(0), 00050 m_cbltModuleType(0), 00051 m_cbltDataLength(0) {}
virtual DayaBay::RawRom::~RawRom | ( | ) | [inline, virtual] |
std::ostream & DayaBay::RawRom::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented in DayaBay::RawRomFee, and DayaBay::RawRomLtb.
Definition at line 177 of file RawRom.h.
00178 { 00179 s << "{ " << "header : " << m_header << std::endl 00180 << "size : " << m_size << std::endl 00181 << "slot : " << m_slot << std::endl 00182 << "type : " << m_type << std::endl 00183 << "cbltGA : " << m_cbltGA << std::endl 00184 << "cbltModuleType : " << m_cbltModuleType << std::endl 00185 << "cbltDataLength : " << m_cbltDataLength << std::endl << " }"; 00186 return s; 00187 }
const DayaBay::RawEventHeader * DayaBay::RawRom::header | ( | ) | const [inline] |
Retrieve const pointer to RawEventHeader.
Definition at line 190 of file RawRom.h.
00191 { 00192 return m_header; 00193 }
void DayaBay::RawRom::setHeader | ( | DayaBay::RawEventHeader * | value | ) | [inline] |
Update pointer to RawEventHeader.
Definition at line 195 of file RawRom.h.
00196 { 00197 m_header = value; 00198 }
int DayaBay::RawRom::size | ( | ) | const [inline] |
void DayaBay::RawRom::setSize | ( | int | value | ) | [inline] |
int DayaBay::RawRom::slot | ( | ) | const [inline] |
void DayaBay::RawRom::setSlot | ( | int | value | ) | [inline] |
int DayaBay::RawRom::type | ( | ) | const [inline] |
void DayaBay::RawRom::setType | ( | int | value | ) | [inline] |
int DayaBay::RawRom::cbltGA | ( | ) | const [inline] |
void DayaBay::RawRom::setCbltGA | ( | int | value | ) | [inline] |
int DayaBay::RawRom::cbltModuleType | ( | ) | const [inline] |
Retrieve const cble module type.
Definition at line 240 of file RawRom.h.
00241 { 00242 return m_cbltModuleType; 00243 }
void DayaBay::RawRom::setCbltModuleType | ( | int | value | ) | [inline] |
Update cble module type.
Definition at line 245 of file RawRom.h.
00246 { 00247 m_cbltModuleType = value; 00248 }
int DayaBay::RawRom::cbltDataLength | ( | ) | const [inline] |
Retrieve const bytes from CBLT head to foot.
Definition at line 250 of file RawRom.h.
00251 { 00252 return m_cbltDataLength; 00253 }
void DayaBay::RawRom::setCbltDataLength | ( | int | value | ) | [inline] |
Update bytes from CBLT head to foot.
Definition at line 255 of file RawRom.h.
00256 { 00257 m_cbltDataLength = value; 00258 }
static void* DayaBay::RawRom::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented in DayaBay::RawRomFee, and DayaBay::RawRomLtb.
Definition at line 118 of file RawRom.h.
00119 { 00120 return ( sizeof(RawRom) == size ? 00121 boost::singleton_pool<RawRom, sizeof(RawRom)>::malloc() : 00122 ::operator new(size) ); 00123 }
static void* DayaBay::RawRom::operator new | ( | size_t | size, | |
void * | pObj | |||
) | [inline, static] |
placement operator new it is needed by libstdc++ 3.2.3 (e.g.
in std::vector) it is not needed in libstdc++ >= 3.4
Reimplemented in DayaBay::RawRomFee, and DayaBay::RawRomLtb.
Definition at line 128 of file RawRom.h.
00129 { 00130 return ::operator new (size,pObj); 00131 }
static void DayaBay::RawRom::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented in DayaBay::RawRomFee, and DayaBay::RawRomLtb.
Definition at line 134 of file RawRom.h.
00135 { 00136 boost::singleton_pool<RawRom, sizeof(RawRom)>::is_from(p) ? 00137 boost::singleton_pool<RawRom, sizeof(RawRom)>::free(p) : 00138 ::operator delete(p); 00139 }
static void DayaBay::RawRom::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Reimplemented in DayaBay::RawRomFee, and DayaBay::RawRomLtb.
Definition at line 143 of file RawRom.h.
00144 { 00145 ::operator delete (p, pObj); 00146 }
DayaBay::RawEventHeader* DayaBay::RawRom::m_header [private] |
int DayaBay::RawRom::m_size [private] |
int DayaBay::RawRom::m_slot [private] |
int DayaBay::RawRom::m_type [private] |
int DayaBay::RawRom::m_cbltGA [private] |
int DayaBay::RawRom::m_cbltModuleType [private] |
int DayaBay::RawRom::m_cbltDataLength [private] |