/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 Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Friends
DybDaq::RtmTraits Class Reference

#include <RtmTraits.h>

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

List of all members.

Public Types

typedef std::vector
< BitsDefinition
Definitions

Public Member Functions

virtual ~RtmTraits ()
virtual unsigned int rtmSize () const =0
virtual void initializeRtm (char *buffer) const =0
virtual unsigned int illegalMarker () const
virtual unsigned int illegalField () const
virtual unsigned int majorVersion () const =0
virtual unsigned int minorVersion () const =0
virtual const std::string versionString () const =0
virtual unsigned int marker (unsigned int marker) const
virtual const char * boolAsString (bool value) const
const DaqTraits::DefinitionsbitsDefinitions (unsigned int component) const

Static Public Member Functions

static const RtmTraitsdefaultTraits ()
static const RtmTraitsreadTraits (const char *&buffer)
static const RtmTraitsgetTraits (const unsigned int version)

Static Public Attributes

static const unsigned int kData = 0
static const unsigned int kRtmMarkerValue = 0xa5
static const unsigned int kRtmMarker = 0
static const unsigned int kRpcCFId = RtmTraits::kRtmMarker + 1
static const unsigned int kTransErr = RtmTraits::kRpcCFId + 1
static const unsigned int kRomAlmostFull = RtmTraits::kTransErr + 1
static const unsigned int kRtmAlmostFull = RtmTraits::kRomAlmostFull + 1
static const unsigned int kFullFlag = RtmTraits::kRtmAlmostFull + 1
static const unsigned int kValidGPS = RtmTraits::kFullFlag + 1
static const unsigned int kValidCLK = RtmTraits::kValidGPS + 1
static const unsigned int kUsingUTC = RtmTraits::kValidCLK + 1
static const unsigned int kSecond = RtmTraits::kUsingUTC + 1
static const unsigned int kNanoSecond = RtmTraits::kSecond + 1
static const unsigned int kAccumulation = RtmTraits::kNanoSecond + 1
static const unsigned int kTriggerRot = RtmTraits::kAccumulation + 1
static const unsigned int kTrigRot1Type = RtmTraits::kTriggerMap + 1
static const unsigned int kTrigRot1 = RtmTraits::kTrigRot1Type + 1
static const unsigned int kTrigRot2Type = RtmTraits::kTrigRot1 + 1
static const unsigned int kTrigRot2 = RtmTraits::kTrigRot2Type + 1
static const unsigned int kTriggerMap = RtmTraits::kTriggerRot + 1
static const unsigned int kTrigMap1Type = RtmTraits::kTrigRot2 + 1
static const unsigned int kTrigMap1 = RtmTraits::kTrigMap1Type + 1
static const unsigned int kTrigMap2Type = RtmTraits::kTrigMap1 + 1
static const unsigned int kTrigMap2 = RtmTraits::kTrigMap2Type + 1
static const unsigned int kForceTrig = RtmTraits::kTrigMap2 + 1
static const unsigned int kVersionNum = RtmTraits::kForceTrig + 1

Protected Member Functions

 RtmTraits ()
unsigned int index (unsigned int field) const
virtual unsigned int markersEnd () const =0
virtual const unsigned int * markers () const =0
virtual unsigned int fieldsEnd () const =0
virtual const unsigned int * indices () const =0
virtual const unsigned int * shifts () const =0
virtual const unsigned int * masks () const =0
virtual const std::string * descriptions () const
virtual DaqTraits::Definitionsdefinitions (unsigned int component) const
virtual void setDefinitions (DaqTraits::Definitions *definitions, unsigned int component)
virtual const unsigned int * componentFields (unsigned int component) const
virtual const unsigned int componentFieldsEnd (unsigned int component) const

Static Protected Member Functions

static unsigned int readUnsignedInt (const char *&buffer, const DaqTraits &traits, unsigned int field)

Private Member Functions

 RtmTraits (const RtmTraits &)
RtmTraitsoperator= (const RtmTraits &)

Friends

friend class DaqBuffer

Detailed Description

Definition at line 8 of file RtmTraits.h.


Constructor & Destructor Documentation

RtmTraits::~RtmTraits ( ) [virtual]

Definition at line 48 of file RtmTraits.cc.

                      {
}
RtmTraits::RtmTraits ( ) [protected]

Definition at line 45 of file RtmTraits.cc.

                     {
}
DybDaq::RtmTraits::RtmTraits ( const RtmTraits ) [private]

Member Function Documentation

const RtmTraits & RtmTraits::defaultTraits ( ) [static]

Definition at line 51 of file RtmTraits.cc.

                                          {
   if ( m_allTraits.size() == 0 ) {
      m_allTraits.insert(std::pair<const char*, RtmTraits*>(RtmTraits_v1_3::key(), new RtmTraits_v1_3()));
      m_allTraits.insert(std::pair<const char*, RtmTraits*>(RtmTraits_v1_6::key(), new RtmTraits_v1_6()));
   }
   return *m_allTraits[ RtmTraits_v1_6::key() ];
}
const RtmTraits * RtmTraits::readTraits ( const char *&  buffer) [static]

Definition at line 59 of file RtmTraits.cc.

const RtmTraits * RtmTraits::getTraits ( const unsigned int  version) [static]

Definition at line 64 of file RtmTraits.cc.

                                                                {
   defaultTraits();
   if ( version == 0x13 ) {
      return m_allTraits[ RtmTraits_v1_3::key() ];
   }
   return m_allTraits[ RtmTraits_v1_6::key() ];
}
virtual unsigned int DybDaq::RtmTraits::rtmSize ( ) const [pure virtual]
virtual void DybDaq::RtmTraits::initializeRtm ( char *  buffer) const [pure virtual]
unsigned int RtmTraits::illegalMarker ( ) const [virtual]

Implements DybDaq::DaqTraits.

Definition at line 72 of file RtmTraits.cc.

                                            {
   return 0xffffffffU;
}
unsigned int RtmTraits::illegalField ( ) const [virtual]

Implements DybDaq::DaqTraits.

Definition at line 76 of file RtmTraits.cc.

                                           {
   return 0xffffffffU;
}
RtmTraits& DybDaq::RtmTraits::operator= ( const RtmTraits ) [private]

Member Data Documentation

const unsigned int RtmTraits::kData = 0 [static]

Definition at line 14 of file RtmTraits.h.

const unsigned int RtmTraits::kRtmMarkerValue = 0xa5 [static]

Definition at line 17 of file RtmTraits.h.

const unsigned int RtmTraits::kRtmMarker = 0 [static]

Definition at line 21 of file RtmTraits.h.

const unsigned int RtmTraits::kRpcCFId = RtmTraits::kRtmMarker + 1 [static]

Definition at line 24 of file RtmTraits.h.

const unsigned int RtmTraits::kTransErr = RtmTraits::kRpcCFId + 1 [static]

Definition at line 27 of file RtmTraits.h.

const unsigned int RtmTraits::kRomAlmostFull = RtmTraits::kTransErr + 1 [static]

Definition at line 30 of file RtmTraits.h.

const unsigned int RtmTraits::kRtmAlmostFull = RtmTraits::kRomAlmostFull + 1 [static]

Definition at line 33 of file RtmTraits.h.

const unsigned int RtmTraits::kFullFlag = RtmTraits::kRtmAlmostFull + 1 [static]

Definition at line 36 of file RtmTraits.h.

const unsigned int RtmTraits::kValidGPS = RtmTraits::kFullFlag + 1 [static]

Definition at line 39 of file RtmTraits.h.

const unsigned int RtmTraits::kValidCLK = RtmTraits::kValidGPS + 1 [static]

Definition at line 42 of file RtmTraits.h.

const unsigned int RtmTraits::kUsingUTC = RtmTraits::kValidCLK + 1 [static]

Definition at line 45 of file RtmTraits.h.

const unsigned int RtmTraits::kSecond = RtmTraits::kUsingUTC + 1 [static]

Definition at line 48 of file RtmTraits.h.

const unsigned int RtmTraits::kNanoSecond = RtmTraits::kSecond + 1 [static]

Definition at line 51 of file RtmTraits.h.

const unsigned int RtmTraits::kAccumulation = RtmTraits::kNanoSecond + 1 [static]

Definition at line 54 of file RtmTraits.h.

const unsigned int RtmTraits::kTriggerRot = RtmTraits::kAccumulation + 1 [static]

Definition at line 57 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigRot1Type = RtmTraits::kTriggerMap + 1 [static]

Definition at line 59 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigRot1 = RtmTraits::kTrigRot1Type + 1 [static]

Definition at line 60 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigRot2Type = RtmTraits::kTrigRot1 + 1 [static]

Definition at line 61 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigRot2 = RtmTraits::kTrigRot2Type + 1 [static]

Definition at line 62 of file RtmTraits.h.

const unsigned int RtmTraits::kTriggerMap = RtmTraits::kTriggerRot + 1 [static]

Definition at line 65 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigMap1Type = RtmTraits::kTrigRot2 + 1 [static]

Definition at line 67 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigMap1 = RtmTraits::kTrigMap1Type + 1 [static]

Definition at line 68 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigMap2Type = RtmTraits::kTrigMap1 + 1 [static]

Definition at line 69 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigMap2 = RtmTraits::kTrigMap2Type + 1 [static]

Definition at line 70 of file RtmTraits.h.

const unsigned int RtmTraits::kForceTrig = RtmTraits::kTrigMap2 + 1 [static]

Definition at line 73 of file RtmTraits.h.

const unsigned int RtmTraits::kVersionNum = RtmTraits::kForceTrig + 1 [static]

Definition at line 76 of file RtmTraits.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:52 for RtmReadoutFormat by doxygen 1.7.4