/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 | Friends
DybDaq::CbltFoot Class Reference

#include <CbltFoot.h>

Inheritance diagram for DybDaq::CbltFoot:
Inheritance graph
[legend]
Collaboration diagram for DybDaq::CbltFoot:
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 ~CbltFoot ()
 Destroy this instance of the class.
unsigned int moduleAddress () const
 Returns the module address from this readout.
unsigned int dataLength () const
 Returns the data transfer length, in bytes, contained in this readout.
virtual unsigned int bufferSize () const
 Returns the size, in 4-bytes, of this ojbect's contents in the buffer.
const CbltTraitscbltTraits () const
 Returns the CbltTraits 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

Static Public Attributes

static const unsigned int kBytesInInt
static const unsigned int kUndefinedFormatComponent

Protected Member Functions

 CbltFoot (const CbltHead &head)
 Create an instance of this class.
 CbltFoot (const ByteBuffer &byteBuffer, const CbltTraits &traits)
 Create an instance of this class.
virtual unsigned int formatComponent () const
 Returns the component with the format of this buffer.
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)

Private Member Functions

 CbltFoot ()
 Suppress default.
 CbltFoot (CbltFoot &rhs)
 Suppress default.
CbltFootoperator= (CbltFoot &rhs)
 Suppress default.
void setModuleAddress (unsigned int moduleAddress)
 Returns the module address from this readout.
void setDataLength (unsigned int dataLength)
 Returns the data transfer length, in bytes, contained in this readout.

Friends

class CbltReadout

Detailed Description

Definition at line 22 of file CbltFoot.h.


Constructor & Destructor Documentation

CbltFoot::~CbltFoot ( ) [virtual]

Destroy this instance of the class.

Definition at line 37 of file CbltFoot.cc.

                    {
}
CbltFoot::CbltFoot ( const CbltHead head) [protected]

Create an instance of this class.

Definition at line 21 of file CbltFoot.cc.

                                       :
CbltBuffer(new char[head.cbltTraits().footSize() * kBytesInInt],
          head.cbltTraits()) {
    const CbltTraits& traits = cbltTraits();
    traits.initializeFoot(buffer());
    setModuleAddress(head.moduleAddress());
    setDataLength((traits.headSize() + traits.footSize()) * kBytesInInt);
}
CbltFoot::CbltFoot ( const ByteBuffer byteBuffer,
const CbltTraits traits 
) [protected]

Create an instance of this class.

Definition at line 30 of file CbltFoot.cc.

                                             :
CbltBuffer(byteBuffer,
           traits) {
        byteBuffer.position(byteBuffer.position() + kBytesInInt);
}
DybDaq::CbltFoot::CbltFoot ( ) [private]

Suppress default.

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

Suppress default.


Member Function Documentation

unsigned int CbltFoot::moduleAddress ( ) const

Returns the module address from this readout.

Definition at line 44 of file CbltFoot.cc.

unsigned int CbltFoot::dataLength ( ) const

Returns the data transfer length, in bytes, contained in this readout.

Definition at line 48 of file CbltFoot.cc.

unsigned int CbltFoot::bufferSize ( ) const [virtual]

Returns the size, in 4-bytes, of this ojbect's contents in the buffer.

Implements DybDaq::DaqBuffer.

Definition at line 52 of file CbltFoot.cc.

                                        {
    return cbltTraits().footSize();
}
unsigned int CbltFoot::formatComponent ( ) const [protected, virtual]

Returns the component with the format of this buffer.

Reimplemented from DybDaq::DaqBuffer.

Definition at line 40 of file CbltFoot.cc.

                                             {
    return CbltTraits::kFoot;
}
CbltFoot& DybDaq::CbltFoot::operator= ( CbltFoot rhs) [private]

Suppress default.

void CbltFoot::setModuleAddress ( unsigned int  moduleAddress) [private]

Returns the module address from this readout.

Definition at line 56 of file CbltFoot.cc.

void CbltFoot::setDataLength ( unsigned int  dataLength) [private]

Returns the data transfer length, in bytes, contained in this readout.

Definition at line 61 of file CbltFoot.cc.

const CbltTraits & CbltBuffer::cbltTraits ( ) const [inherited]

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

Definition at line 34 of file CbltBuffer.cc.

                                               {
        return dynamic_cast<const CbltTraits&>(daqTraits());
}

Friends And Related Function Documentation

friend class CbltReadout [friend]

Definition at line 26 of file CbltFoot.h.


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:11 for CbltReadoutFormat by doxygen 1.7.4