#include <Header.h>
Inheritance diagram for eformat::old::Header:
Public Member Functions | |
virtual bool | check () const |
virtual bool | check () const |
const uint32_t * | child (size_t n) const |
const uint32_t * | child (size_t n) const |
uint32_t | fragment_size_word () const |
uint32_t | fragment_size_word () const |
Header (const uint32_t *it, uint32_t match) | |
Header (const uint32_t *it, uint32_t match) | |
uint32_t | header_size_word () const |
uint32_t | header_size_word () const |
uint32_t | marker () const |
uint32_t | marker () const |
uint32_t | noffset () const |
uint32_t | noffset () const |
uint32_t | nspecific () const |
uint32_t | nspecific () const |
uint32_t | nstatus () const |
uint32_t | nstatus () const |
const uint32_t * | offset (void) const |
const uint32_t * | offset (void) const |
uint32_t | run_no () const |
uint32_t | run_no () const |
uint32_t | source_id () const |
uint32_t | source_id () const |
const uint32_t * | specific_header (void) const |
const uint32_t * | specific_header (void) const |
const uint32_t * | status () const |
const uint32_t * | status () const |
uint32_t | version () const |
uint32_t | version () const |
virtual | ~Header () |
virtual | ~Header () |
Private Attributes | |
const uint32_t * | m_start |
my start word | |
const uint32_t * | m_start |
my start word |
|
To build a header given the containing buffer. I need to know where the header starts in order to do that.
00022 : m_start(it) 00023 { 00024 //get endiannesso 00025 uint32_t m = marker(); 00026 if (m != match) throw EFORMAT_WRONG_MARKER(m, match); 00027 }
|
|
Destructor virtualisation 00056 {}
|
|
To build a header given the containing buffer. I need to know where the header starts in order to do that.
|
|
Destructor virtualisation 00056 {}
|
|
Says if the generic part of the header is valid. This may throw exceptions. Reimplemented in eformat::old::FullEventFragment, eformat::old::ROBFragment, eformat::old::ROSFragment, eformat::old::SubDetectorFragment, eformat::old::FullEventFragment, eformat::old::ROBFragment, eformat::old::ROSFragment, and eformat::old::SubDetectorFragment. |
|
Says if the generic part of the header is valid. This may throw exceptions. Reimplemented in eformat::old::FullEventFragment, eformat::old::ROBFragment, eformat::old::ROSFragment, eformat::old::SubDetectorFragment, eformat::old::FullEventFragment, eformat::old::ROBFragment, eformat::old::ROSFragment, and eformat::old::SubDetectorFragment. 00030 { 00031 if ( version() >> 16 != eformat::MAJOR_OLD_VERSION ) 00032 throw EFORMAT_BAD_VERSION(version() >> 16, eformat::MAJOR_OLD_VERSION); 00033 if ( header_size_word() != (9 + nstatus() + noffset() + nspecific()) ) 00034 throw EFORMAT_SIZE_CHECK(header_size_word(), 00035 (9 + nstatus() + noffset() + nspecific())); 00036 return true; 00037 }
|
|
Returns the nth child fragment. If the nth fragment doesn't exist, an exception is thrown.
|
|
Returns the nth child fragment. If the nth fragment doesn't exist, an exception is thrown.
00040 { 00041 if (n >= noffset()) throw EFORMAT_NO_SUCH_CHILD(n, noffset()); 00042 return &m_start[0xffffff & offset()[n]]; 00043 }
|
|
Returns the size, in words, of the current fragment. 00072 { return m_start[1]; }
|
|
Returns the size, in words, of the current fragment. 00072 { return m_start[1]; }
|
|
Returns the size, in words, of the current header. That does include the specific part of the header. 00078 { return m_start[2]; }
|
|
Returns the size, in words, of the current header. That does include the specific part of the header. 00078 { return m_start[2]; }
|
|
Returns the fragment type. 00067 { return m_start[0]; }
|
|
Returns the fragment type. 00067 { return m_start[0]; }
|
|
Returns the number of offset words available. This will also determine the number of child fragments available to this super-fragment.
|
|
Returns the number of offset words available. This will also determine the number of child fragments available to this super-fragment.
|
|
Returns the number of specific words available in the specific header part
|
|
Returns the number of specific words available in the specific header part
|
|
Returns the number of status words available 00098 { return m_start[6]; }
|
|
Returns the number of status words available 00098 { return m_start[6]; }
|
|
Returns the offset words, as an iterator to the offset words available.
|
|
Returns the offset words, as an iterator to the offset words available.
|
|
Returns the current run number. 00093 { return m_start[5]; }
|
|
Returns the current run number. 00093 { return m_start[5]; }
|
|
Returns the full source identifier. 00088 { return m_start[4]; }
|
|
Returns the full source identifier. 00088 { return m_start[4]; }
|
|
Returns an iterator to the start of the specific header part (this includes the number of specific header fragments)
|
|
Returns an iterator to the start of the specific header part (this includes the number of specific header fragments)
|
|
Returns the status words, as an iterator to the status words available. 00104 { return &m_start[7]; }
|
|
Returns the status words, as an iterator to the status words available. 00104 { return &m_start[7]; }
|
|
Returns the formatting version. 00083 { return m_start[3]; }
|
|
Returns the formatting version. 00083 { return m_start[3]; }
|
|
|