#include <FeeBuffer.h>
Inheritance diagram for DybDaq::FeeBuffer:
Public Types | |
typedef std::pair< const char *, unsigned int > | OutputBuffer |
typedef std::vector< OutputBuffer > | OutputBufferList |
typedef std::vector< ByteInspector * > | Bytes |
typedef std::vector< BitsInspector * > | Bits |
Public Member Functions | |
virtual | ~FeeBuffer () |
Destroy this instance of the class. | |
const FeeTraits & | feeTraits () const |
Returns the FeeTraits instance used to parse this object's buffer. | |
bool | hasDaqTraits () const |
virtual const DaqTraits & | daqTraits () const |
virtual unsigned int | gather (OutputBufferList &outputBuffers) const |
virtual unsigned int | inspect (DaqBuffer::Bytes &inspectors) const |
virtual unsigned int | bufferSize () const =0 |
Static Public Attributes | |
static const unsigned int | kBytesInInt |
static const unsigned int | kUndefinedFormatComponent |
Protected Member Functions | |
FeeBuffer (char *buffer, const FeeTraits &traits, const unsigned int size=0) | |
Creates an instance of this class. | |
FeeBuffer (const ByteBuffer &byteBuffer, const FeeTraits &traits) | |
Creates an instance of this class. | |
const char * | buffer () const |
char * | buffer () |
bool | hasByteBuffer () const |
const ByteBuffer & | byteBuffer () const |
unsigned int | fillInspectors (DaqBuffer::Bytes &inspectors, unsigned int component, unsigned int cursor) const |
virtual bool | readBool (const unsigned int field) const |
virtual int | readInt (const unsigned int field) const |
virtual unsigned char | readUnsignedChar (const unsigned int field) const |
virtual unsigned int | readUnsignedInt (const unsigned int field) const |
virtual void | writeField (const bool value, const unsigned int field) |
virtual void | writeField (const int value, const unsigned int field) |
virtual void | writeField (const unsigned int value, const unsigned int field) |
virtual unsigned int | formatComponent () const |
Private Member Functions | |
FeeBuffer () | |
Suppress default. | |
FeeBuffer (FeeBuffer &rhs) | |
Suppress default. | |
FeeBuffer & | operator= (FeeBuffer &rhs) |
Suppress default. |
Definition at line 21 of file FeeBuffer.h.
FeeBuffer::~FeeBuffer | ( | ) | [virtual] |
FeeBuffer::FeeBuffer | ( | char * | buffer, | |
const FeeTraits & | traits, | |||
const unsigned int | size = 0 | |||
) | [protected] |
FeeBuffer::FeeBuffer | ( | const ByteBuffer & | byteBuffer, | |
const FeeTraits & | traits | |||
) | [protected] |
Creates an instance of this class.
Definition at line 25 of file FeeBuffer.cc.
00026 : 00027 DaqBuffer(byteBuffer, 00028 traits) { 00029 }
DybDaq::FeeBuffer::FeeBuffer | ( | ) | [private] |
Suppress default.
DybDaq::FeeBuffer::FeeBuffer | ( | FeeBuffer & | rhs | ) | [private] |
Suppress default.
const FeeTraits & FeeBuffer::feeTraits | ( | ) | const |
Returns the FeeTraits instance used to parse this object's buffer.
Definition at line 34 of file FeeBuffer.cc.
00034 { 00035 return dynamic_cast<const FeeTraits&>(daqTraits()); 00036 }