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

#include <RunParametersRecord.h>

Inheritance diagram for DybDaq::RunParametersRecord:
Inheritance graph
[legend]
Collaboration diagram for DybDaq::RunParametersRecord:
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

 RunParametersRecord (const unsigned int runNumber, const bool recordEnabled, const unsigned int triggerType, const unsigned int detectorMask, const FileTraits &traits)
 Create an instance of this class.
 RunParametersRecord (const DybDaq::ByteBuffer &byteBuffer, const FileTraits &traits)
 Create an instance of this class.
virtual ~RunParametersRecord ()
 Destroy this instance of the class.
virtual bool isMarked (unsigned int marker) const
 Returns true if this object contains the specified marker.
unsigned int runNumber () const
 Returns the run number of this file's data.
bool recordEnabled () const
 Returns true if recording is enabled.
unsigned int triggerType () const
 Returns the trigger type.
unsigned int detectorMask () const
 Returns the detector mask used while this data was taken.
const FileTraitsfileTraits () const
 Returns the FileTraits instance used to parse this object's buffer.
unsigned int marker () const
 Returns the marker for this FileBuffer.
unsigned int size () const
 Returns the length of this record in 4-byte words.
virtual unsigned int bufferSize () const
 Returns the size, in 4-bytes,, of this object's contents in the 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

virtual unsigned int formatComponent () const
 Returns the component with the format of this buffer.
void setMarker (const unsigned int marker)
 Sets the marker for this FileBuffer.
void setSize (const unsigned int size)
 Sets the size, in 4-bytes,, of this object's contents in the 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

 RunParametersRecord ()
 Suppress default.
 RunParametersRecord (RunParametersRecord &rhs)
 Suppress default.
RunParametersRecordoperator= (RunParametersRecord &rhs)
 Suppress default.
void setRunNumber (const unsigned int runNumber)
 Sets the run number of this file's data.
void setRecordEnabled (const bool recordEnabled)
 Sets true if recording is enabled.
void setTriggerType (const unsigned int triggerType)
 Sets the trigger type.
void setDetectorMask (const unsigned int detectorMask)
 Sets the detector mask used while this data was taken.

Detailed Description

Definition at line 17 of file RunParametersRecord.h.


Constructor & Destructor Documentation

RunParametersRecord::RunParametersRecord ( const unsigned int  runNumber,
const bool  recordEnabled,
const unsigned int  triggerType,
const unsigned int  detectorMask,
const FileTraits traits 
)
RunParametersRecord::RunParametersRecord ( const DybDaq::ByteBuffer byteBuffer,
const FileTraits traits 
)

Create an instance of this class.

Definition at line 30 of file RunParametersRecord.cc.

                                                                   :
FileBuffer(byteBuffer,
           traits) {
}
RunParametersRecord::~RunParametersRecord ( ) [virtual]

Destroy this instance of the class.

Definition at line 36 of file RunParametersRecord.cc.

                                          {
}
DybDaq::RunParametersRecord::RunParametersRecord ( ) [private]

Suppress default.

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

Suppress default.


Member Function Documentation

bool RunParametersRecord::isMarked ( unsigned int  marker) const [virtual]

Returns true if this object contains the specified marker.

Implements DybDaq::FileBuffer.

Definition at line 39 of file RunParametersRecord.cc.

unsigned int RunParametersRecord::runNumber ( ) const

Returns the run number of this file's data.

Definition at line 43 of file RunParametersRecord.cc.

bool RunParametersRecord::recordEnabled ( ) const

Returns true if recording is enabled.

Definition at line 47 of file RunParametersRecord.cc.

unsigned int RunParametersRecord::triggerType ( ) const

Returns the trigger type.

Definition at line 51 of file RunParametersRecord.cc.

unsigned int RunParametersRecord::detectorMask ( ) const

Returns the detector mask used while this data was taken.

Definition at line 55 of file RunParametersRecord.cc.

unsigned int RunParametersRecord::formatComponent ( ) const [protected, virtual]

Returns the component with the format of this buffer.

Reimplemented from DybDaq::DaqBuffer.

Definition at line 59 of file RunParametersRecord.cc.

RunParametersRecord& DybDaq::RunParametersRecord::operator= ( RunParametersRecord rhs) [private]

Suppress default.

void RunParametersRecord::setRunNumber ( const unsigned int  runNumber) [private]

Sets the run number of this file's data.

Definition at line 63 of file RunParametersRecord.cc.

void RunParametersRecord::setRecordEnabled ( const bool  recordEnabled) [private]

Sets true if recording is enabled.

Definition at line 68 of file RunParametersRecord.cc.

void RunParametersRecord::setTriggerType ( const unsigned int  triggerType) [private]

Sets the trigger type.

Definition at line 73 of file RunParametersRecord.cc.

void RunParametersRecord::setDetectorMask ( const unsigned int  detectorMask) [private]

Sets the detector mask used while this data was taken.

Definition at line 78 of file RunParametersRecord.cc.

const FileTraits & FileBuffer::fileTraits ( ) const [inherited]

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

Definition at line 40 of file FileBuffer.cc.

                                               {
    return dynamic_cast<const FileTraits&>(daqTraits());
}
unsigned int FileBuffer::marker ( ) const [inherited]

Returns the marker for this FileBuffer.

Definition at line 44 of file FileBuffer.cc.

unsigned int FileBuffer::size ( ) const [inherited]

Returns the length of this record in 4-byte words.

Definition at line 48 of file FileBuffer.cc.

unsigned int FileBuffer::bufferSize ( ) const [virtual, inherited]

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

Implements DybDaq::DaqBuffer.

Definition at line 52 of file FileBuffer.cc.

                                          {
    return size();
}
void FileBuffer::setMarker ( const unsigned int  marker) [protected, inherited]

Sets the marker for this FileBuffer.

Definition at line 56 of file FileBuffer.cc.

void FileBuffer::setSize ( const unsigned int  size) [protected, inherited]

Sets the size, in 4-bytes,, of this object's contents in the buffer.

Definition at line 61 of file FileBuffer.cc.


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:23 for FileReadoutFormat by doxygen 1.7.4