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

#include <MomParametersRecord.h>

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

 MomParametersRecord (const DybDaq::ByteBuffer &byteBuffer, const FileTraits &traits)
virtual ~MomParametersRecord ()
 Destroy this instance of the class.
virtual bool isMarked (unsigned int marker) const
 Returns true if this object contains the specified marker.
unsigned int detectorId () const
 Returns the detector id.
unsigned int adNumber () const
 Returns the AD number.
unsigned int sourceType () const
 Returns the source type.
unsigned int pulsePeriod () const
 Returns the LED pulse period.
unsigned int ledBias () const
 Returns the LED Bais.
unsigned int ledWavelength () const
 Returns the LED wavelength.
unsigned int pulseWidth () const
 Returns the LED pulse width.
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

 MomParametersRecord ()
 Suppress default.
 MomParametersRecord (MomParametersRecord &rhs)
 Suppress default.
MomParametersRecordoperator= (MomParametersRecord &rhs)
 Suppress default.

Detailed Description

Definition at line 17 of file MomParametersRecord.h.


Constructor & Destructor Documentation

MomParametersRecord::MomParametersRecord ( const DybDaq::ByteBuffer byteBuffer,
const FileTraits traits 
)

Create an instance of this class.

Definition at line 32 of file MomParametersRecord.cc.

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

Destroy this instance of the class.

Definition at line 38 of file MomParametersRecord.cc.

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

Suppress default.

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

Suppress default.


Member Function Documentation

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

Returns true if this object contains the specified marker.

Implements DybDaq::FileBuffer.

Definition at line 41 of file MomParametersRecord.cc.

unsigned int MomParametersRecord::detectorId ( ) const

Returns the detector id.

Definition at line 45 of file MomParametersRecord.cc.

unsigned int MomParametersRecord::adNumber ( ) const

Returns the AD number.

Definition at line 49 of file MomParametersRecord.cc.

unsigned int MomParametersRecord::sourceType ( ) const

Returns the source type.

Definition at line 53 of file MomParametersRecord.cc.

unsigned int MomParametersRecord::pulsePeriod ( ) const

Returns the LED pulse period.

Definition at line 57 of file MomParametersRecord.cc.

unsigned int MomParametersRecord::ledBias ( ) const

Returns the LED Bais.

Definition at line 61 of file MomParametersRecord.cc.

unsigned int MomParametersRecord::ledWavelength ( ) const

Returns the LED wavelength.

Definition at line 65 of file MomParametersRecord.cc.

unsigned int MomParametersRecord::pulseWidth ( ) const

Returns the LED pulse width.

Definition at line 69 of file MomParametersRecord.cc.

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

Returns the component with the format of this buffer.

Reimplemented from DybDaq::DaqBuffer.

Definition at line 73 of file MomParametersRecord.cc.

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

Suppress default.

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