/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions
DybDaq::LtbBuffer Class Reference

#include <LtbBuffer.h>

Inheritance diagram for DybDaq::LtbBuffer:
Inheritance graph
[legend]
Collaboration diagram for DybDaq::LtbBuffer:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::pair< const char
*, unsigned int > 
OutputBuffer
typedef std::vector< OutputBufferOutputBufferList
typedef std::vector
< ByteInspector * > 
Bytes
typedef std::vector
< BitsInspector * > 
Bits

Public Member Functions

virtual ~LtbBuffer ()
 Destroy this instance of the class.
const LtbTraitsltbTraits () const
 Returns the LtbTraits instance used to parse this object's buffer.
bool hasDaqTraits () const
virtual const DaqTraitsdaqTraits () 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

 LtbBuffer (char *buffer, const LtbTraits &traits, const unsigned int size=0)
 Creates an instance of this class.
 LtbBuffer (const ByteBuffer &byteBuffer, const LtbTraits &traits)
 Creates an instance of this class.
const char * buffer () const
char * buffer ()
bool hasByteBuffer () const
const ByteBufferbyteBuffer () 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

 LtbBuffer ()
 Suppress default.
 LtbBuffer (LtbBuffer &rhs)
 Suppress default.
LtbBufferoperator= (LtbBuffer &rhs)
 Suppress default.

Detailed Description

Definition at line 22 of file LtbBuffer.h.


Constructor & Destructor Documentation

LtbBuffer::~LtbBuffer ( ) [virtual]

Destroy this instance of the class.

Definition at line 33 of file LtbBuffer.cc.

                      {
}
LtbBuffer::LtbBuffer ( char *  buffer,
const LtbTraits traits,
const unsigned int  size = 0 
) [protected]

Creates an instance of this class.

Definition at line 19 of file LtbBuffer.cc.

                                              :
DaqBuffer(buffer,
          traits,
          size) {
}
LtbBuffer::LtbBuffer ( const ByteBuffer byteBuffer,
const LtbTraits traits 
) [protected]

Creates an instance of this class.

Definition at line 27 of file LtbBuffer.cc.

                                              :
DaqBuffer(byteBuffer,
          traits) {
}
DybDaq::LtbBuffer::LtbBuffer ( ) [private]

Suppress default.

DybDaq::LtbBuffer::LtbBuffer ( LtbBuffer rhs) [private]

Suppress default.


Member Function Documentation

const LtbTraits & LtbBuffer::ltbTraits ( ) const

Returns the LtbTraits instance used to parse this object's buffer.

Definition at line 36 of file LtbBuffer.cc.

                                            {
        return dynamic_cast<const LtbTraits&>(daqTraits());
}
LtbBuffer& DybDaq::LtbBuffer::operator= ( LtbBuffer rhs) [private]

Suppress default.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:53:06 for LtbReadoutFormat by doxygen 1.7.4