ATLAS Offline Software
|
Contains the information on the Header of a fragment as described by the original note. More...
#include <v40_Header.h>
Public Member Functions | |
Header (const uint32_t *it) | |
To build a header given the containing buffer. More... | |
Header () | |
Builds an empty, otherwise useless Header. More... | |
Header (const Header &other) | |
Copy constructor. More... | |
virtual | ~Header () |
Destructor virtualisation. More... | |
Header & | operator= (const Header &other) |
Assigment operator. More... | |
void | throws (bool b) |
If you set this parameter, objects of this type will throw exceptions. More... | |
bool | throws () const |
Says if we are supposed to throw exceptions or not. More... | |
Header & | assign (const uint32_t *it) |
Reassign this header. More... | |
uint32_t | marker () const |
Returns the fragment type. More... | |
uint32_t | fragment_size_word () const |
Returns the size, in words, of the current fragment. More... | |
uint32_t | header_size_word () const |
Returns the size, in words, of the current header. More... | |
uint32_t | version () const |
Returns the formatting version. More... | |
uint32_t | source_id () const |
Returns the full source identifier. More... | |
uint32_t | nstatus () const |
Returns the number of status words available. More... | |
const uint32_t * | start () const |
Sets the pointer to my start. More... | |
void | start (const uint32_t *&it) const |
const uint32_t * | payload () const |
Sets the pointer to where the payload starts. More... | |
void | payload (const uint32_t *&it) const |
const uint32_t * | end () const |
Sets the pointer to one-past my end position. More... | |
void | end (const uint32_t *&it) const |
uint32_t | payload_size_word (void) const |
Returns the payload size. More... | |
const uint32_t * | status () const |
Returns the status words, as an iterator to the status words available. More... | |
void | status (const uint32_t *&it) const |
uint32_t | checksum_type () const |
Returns the check-sum type entry. More... | |
uint32_t | nspecific () const |
Returns the number of specific words available in the specific header part. More... | |
const uint32_t * | specific_header () const |
Returns an iterator to the start of the specific header part. More... | |
void | specific_header (const uint32_t *&it) const |
uint32_t | checksum_value (void) const |
Access the check sum value of this fragment, if any. More... | |
uint32_t | eval_checksum (void) const |
Evaluates the current (supposed) checksum for this fragment, taking into consideration the current setting for the checksum type. More... | |
bool | checksum (void) const |
This will actually re-calculate the checksum and verify that the payload of the current fragment matches that. More... | |
Private Attributes | |
const uint32_t * | m_top |
< representation More... | |
Contains the information on the Header of a fragment as described by the original note.
The header is a composite entity, build from two parts:
Definition at line 37 of file v40_Header.h.
offline_eformat::v40::Header::Header | ( | const uint32_t * | it | ) |
To build a header given the containing buffer.
I need to know where the header starts in order to do that.
it | The exact position where this header should start. |
Definition at line 15 of file v40_Header.cxx.
offline_eformat::v40::Header::Header | ( | ) |
Builds an empty, otherwise useless Header.
Definition at line 20 of file v40_Header.cxx.
Copy constructor.
other | The other header to construct from |
Definition at line 25 of file v40_Header.cxx.
|
virtual |
offline_eformat::v40::Header & offline_eformat::v40::Header::assign | ( | const uint32_t * | it | ) |
Reassign this header.
it | The exact position where this header should start. |
Definition at line 117 of file v40_Header.cxx.
bool offline_eformat::v40::Header::checksum | ( | void | ) | const |
This will actually re-calculate the checksum and verify that the payload of the current fragment matches that.
Only works with contiguous memory templates.
Definition at line 128 of file v40_Header.cxx.
uint32_t offline_eformat::v40::Header::checksum_type | ( | ) | const |
Returns the check-sum type entry.
Definition at line 97 of file v40_Header.cxx.
uint32_t offline_eformat::v40::Header::checksum_value | ( | void | ) | const |
Access the check sum value of this fragment, if any.
Understand that if, checksum_type() resolves to eformat::NO_CHECKSUM, the returned value will have no meaning.
Definition at line 112 of file v40_Header.cxx.
const uint32_t * offline_eformat::v40::Header::end | ( | ) | const |
Sets the pointer to one-past my end position.
it | The pointer to set |
Definition at line 82 of file v40_Header.cxx.
|
inline |
Definition at line 144 of file v40_Header.h.
uint32_t offline_eformat::v40::Header::eval_checksum | ( | void | ) | const |
Evaluates the current (supposed) checksum for this fragment, taking into consideration the current setting for the checksum type.
Please note this value may be different from the actual checksum_value() if for any reason the fragment is corrupted.
Definition at line 123 of file v40_Header.cxx.
uint32_t offline_eformat::v40::Header::fragment_size_word | ( | ) | const |
Returns the size, in words, of the current fragment.
Definition at line 47 of file v40_Header.cxx.
uint32_t offline_eformat::v40::Header::header_size_word | ( | ) | const |
Returns the size, in words, of the current header.
That does include the specific part of the header.
Definition at line 52 of file v40_Header.cxx.
uint32_t offline_eformat::v40::Header::marker | ( | ) | const |
Returns the fragment type.
Definition at line 42 of file v40_Header.cxx.
uint32_t offline_eformat::v40::Header::nspecific | ( | ) | const |
Returns the number of specific words available in the specific header part.
Definition at line 102 of file v40_Header.cxx.
uint32_t offline_eformat::v40::Header::nstatus | ( | ) | const |
Returns the number of status words available.
Definition at line 67 of file v40_Header.cxx.
offline_eformat::v40::Header & offline_eformat::v40::Header::operator= | ( | const Header & | other | ) |
Assigment operator.
other | The other header to assign from |
Definition at line 34 of file v40_Header.cxx.
const uint32_t * offline_eformat::v40::Header::payload | ( | ) | const |
Sets the pointer to where the payload starts.
it | The pointer to set |
Definition at line 77 of file v40_Header.cxx.
|
inline |
Definition at line 136 of file v40_Header.h.
uint32_t offline_eformat::v40::Header::payload_size_word | ( | void | ) | const |
Returns the payload size.
Definition at line 87 of file v40_Header.cxx.
uint32_t offline_eformat::v40::Header::source_id | ( | ) | const |
Returns the full source identifier.
Definition at line 62 of file v40_Header.cxx.
const uint32_t * offline_eformat::v40::Header::specific_header | ( | ) | const |
Returns an iterator to the start of the specific header part.
it | An updateable iterator you should provide. |
Definition at line 107 of file v40_Header.cxx.
|
inline |
Definition at line 176 of file v40_Header.h.
const uint32_t * offline_eformat::v40::Header::start | ( | ) | const |
Sets the pointer to my start.
it | The pointer to set |
Definition at line 72 of file v40_Header.cxx.
|
inline |
Definition at line 128 of file v40_Header.h.
const uint32_t * offline_eformat::v40::Header::status | ( | ) | const |
Returns the status words, as an iterator to the status words available.
it | An updateable iterator you should provide. |
Definition at line 92 of file v40_Header.cxx.
|
inline |
Definition at line 157 of file v40_Header.h.
bool offline_eformat::v40::Header::throws | ( | ) | const |
Says if we are supposed to throw exceptions or not.
void offline_eformat::v40::Header::throws | ( | bool | b | ) |
If you set this parameter, objects of this type will throw exceptions.
The default behavior is to throw.
uint32_t offline_eformat::v40::Header::version | ( | ) | const |
Returns the formatting version.
Definition at line 57 of file v40_Header.cxx.
|
private |