/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::FadcFoot Class Reference

#include <FadcFoot.h>

Inheritance diagram for DybDaq::FadcFoot:
Inheritance graph
[legend]
Collaboration diagram for DybDaq::FadcFoot:
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 ~FadcFoot ()
 Destroy this instance of the class.
unsigned int triggerNumber () 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 FadcTraitsfadcTraits () const
 Returns the FadcTraits 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

 FadcFoot (const FadcHead &head)
 Create an instance of this class.
 FadcFoot (const ByteBuffer &byteBuffer, const FadcTraits &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

 FadcFoot ()
 Suppress default.
 FadcFoot (FadcFoot &rhs)
 Suppress default.
FadcFootoperator= (FadcFoot &rhs)
 Suppress default.
void setTriggerNumber (const unsigned int triggerNumber)
 Sets the trigger number for this readout.
void setDataLength (const unsigned int dataLength)
 Sets the data transfer length, in bytes, contained in this readout.

Friends

class FadcReadout

Detailed Description

Definition at line 22 of file FadcFoot.h.


Constructor & Destructor Documentation

FadcFoot::~FadcFoot ( ) [virtual]

Destroy this instance of the class.

Definition at line 36 of file FadcFoot.cc.

                    {
}
FadcFoot::FadcFoot ( const FadcHead head) [protected]

Create an instance of this class.

Definition at line 20 of file FadcFoot.cc.

                                       :
FadcBuffer(new char[head.fadcTraits().footSize() * kBytesInInt],
          head.fadcTraits()) {
    const FadcTraits& traits = fadcTraits();
    traits.initializeFoot(buffer());
    setTriggerNumber(head.triggerNumber());
    setDataLength((traits.headSize() + traits.footSize()) * kBytesInInt);
}
FadcFoot::FadcFoot ( const ByteBuffer byteBuffer,
const FadcTraits traits 
) [protected]

Create an instance of this class.

Definition at line 29 of file FadcFoot.cc.

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

Suppress default.

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

Suppress default.


Member Function Documentation

unsigned int FadcFoot::triggerNumber ( ) const

Returns the module address from this readout.

Definition at line 43 of file FadcFoot.cc.

unsigned int FadcFoot::dataLength ( ) const

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

Definition at line 47 of file FadcFoot.cc.

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

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

Implements DybDaq::DaqBuffer.

Definition at line 51 of file FadcFoot.cc.

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

Returns the component with the format of this buffer.

Reimplemented from DybDaq::DaqBuffer.

Definition at line 39 of file FadcFoot.cc.

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

Suppress default.

void FadcFoot::setTriggerNumber ( const unsigned int  triggerNumber) [private]

Sets the trigger number for this readout.

Definition at line 55 of file FadcFoot.cc.

void FadcFoot::setDataLength ( const unsigned int  dataLength) [private]

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

Definition at line 60 of file FadcFoot.cc.

const FadcTraits & FadcBuffer::fadcTraits ( ) const [inherited]

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

Definition at line 32 of file FadcBuffer.cc.

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

Friends And Related Function Documentation

friend class FadcReadout [friend]

Definition at line 26 of file FadcFoot.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:52:59 for FadcReadoutFormat by doxygen 1.7.4