#include <CDocumentedPacket.h>
Public Methods | |
CDocumentedPacket (unsigned short nTag, const string &rName, const string &rDescription, const string &rVersion) | |
Constructor. | |
virtual | ~CDocumentedPacket () |
int | operator== (const CDocumentedPacket &rhs) const |
< Comparison for equality. | |
int | operator== (const string &rhs) const |
int | operator!= (const CDocumentedPacket &rhs) const |
int | operator!= (const string &rhs) const |
unsigned short | getTag () const |
string | getName () const |
string | getDescription () const |
string | getVersion () const |
string | getInstantiationDate () const |
DAQWordBufferPtr | getHeaderPtr () const |
bool | getPacketInProgress () const |
string | Format () |
DAQWordBufferPtr | Begin (DAQWordBufferPtr &rPointer) |
DAQWordBufferPtr | End (DAQWordBufferPtr &rBuffer) |
Private Methods | |
CDocumentedPacket (const CDocumentedPacket &rhs) | |
Copy constructor. | |
CDocumentedPacket & | operator= (const CDocumentedPacket &rhs) |
Assignment. | |
Private Attributes | |
unsigned short | m_nTag |
Tag identifying event in the buffer. | |
string | m_sName |
String name of tag. | |
string | m_sDescription |
Long description of tag. | |
string | m_sVersion |
Version of the packet. | |
string | m_sInstantiationDate |
Date/time object instantiated. | |
DAQWordBufferPtr | m_pHeaderPtr |
'pointer' to header of current packet. | |
bool | m_fPacketInProgress |
true if packet being built now. |
Definition at line 312 of file CDocumentedPacket.h.
|
Constructor. Default constructor. This is called when declarations of the form e.g.:
Definition at line 309 of file CDocumentedPacket.cpp. References CDocumentedPacketManager::AddPacket(), CDocumentedPacketManager::getInstance(), and m_sInstantiationDate. |
|
Definition at line 330 of file CDocumentedPacket.cpp. References CDocumentedPacketManager::DeletePacket(), CDocumentedPacketManager::getInstance(), m_fPacketInProgress, and m_sName. |
|
Copy constructor.
|
|
Requests a packet of this type be opened. Throws CInvalidPacketState if packet already open. m_fPacketInProgress -> true m_pHeader pointer is captured from the current pointer, Space is reserved for the word count, and the id is written. Pointer to the next free spot in the buffer is returned.
Definition at line 383 of file CDocumentedPacket.cpp. References m_fPacketInProgress, m_nTag, and m_pHeaderPtr. Referenced by CCountingEventSegment::Read(), Hierarchy::Read(), and readevt(). |
|
Closes a packet. If m_fPackteInProgress is false, throws CInvalidPacketState. Otherwise: m_fPacketInProgress -> false, the Buffer pointer is used to determine, and fill in the word count of the packet. A buffer pointer to the next slot is returned (to allow for the possibility there's trailer data too).
Definition at line 418 of file CDocumentedPacket.cpp. References m_fPacketInProgress, and m_pHeaderPtr. Referenced by CCountingEventSegment::Read(), Hierarchy::Read(), and readevt(). |
|
Returns a formatted string describing the packet which can be inserted in a documentation buffer. This is returned as a colon separated set of fields:
Definition at line 352 of file CDocumentedPacket.cpp. References m_nTag, m_sDescription, m_sInstantiationDate, m_sName, and m_sVersion. |
|
Definition at line 364 of file CDocumentedPacket.h. References m_sDescription. |
|
Get a pointer to the current packet. This throws CInvalidPacketState if there is not an open packet, and is therefore not a trivial selector. Definition at line 433 of file CDocumentedPacket.cpp. References m_fPacketInProgress, and m_pHeaderPtr. |
|
Definition at line 372 of file CDocumentedPacket.h. References m_sInstantiationDate. |
|
Definition at line 360 of file CDocumentedPacket.h. References m_sName. |
|
Definition at line 378 of file CDocumentedPacket.h. References m_fPacketInProgress. |
|
Definition at line 356 of file CDocumentedPacket.h. References m_nTag. |
|
Definition at line 368 of file CDocumentedPacket.h. References m_sVersion. |
|
Definition at line 349 of file CDocumentedPacket.h. References operator==(). |
|
Definition at line 344 of file CDocumentedPacket.h. References operator==(). |
|
Assignment.
|
|
Definition at line 340 of file CDocumentedPacket.h. References m_sName. |
|
< Comparison for equality.
Definition at line 336 of file CDocumentedPacket.h. References m_sName. Referenced by operator!=(). |
|
true if packet being built now.
Definition at line 321 of file CDocumentedPacket.h. Referenced by Begin(), End(), getHeaderPtr(), getPacketInProgress(), and ~CDocumentedPacket(). |
|
Tag identifying event in the buffer.
Definition at line 315 of file CDocumentedPacket.h. |
|
'pointer' to header of current packet.
Definition at line 320 of file CDocumentedPacket.h. Referenced by Begin(), End(), and getHeaderPtr(). |
|
Long description of tag.
Definition at line 317 of file CDocumentedPacket.h. Referenced by Format(), and getDescription(). |
|
Date/time object instantiated.
Definition at line 319 of file CDocumentedPacket.h. Referenced by CDocumentedPacket(), Format(), and getInstantiationDate(). |
|
String name of tag.
Definition at line 316 of file CDocumentedPacket.h. Referenced by Format(), getName(), operator==(), and ~CDocumentedPacket(). |
|
Version of the packet.
Definition at line 318 of file CDocumentedPacket.h. Referenced by Format(), and getVersion(). |