BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
eformat::Header< TPointer > Class Template Reference

#include <Header.h>

Inheritance diagram for eformat::Header< TPointer >:

Public Member Functions

 Header (const TPointer &it, uint32_t match)
 Header ()
 Header (const Header &other)
virtual ~Header ()
Headeroperator= (const Header &other)
Headerassign (const TPointer &it, uint32_t match)
virtual bool check () const
uint32_t marker () const
uint32_t fragment_size_word () const
uint32_t header_size_word () const
uint32_t version () const
uint32_t source_id () const
uint32_t nstatus () const
void start (TPointer &it) const
void payload (TPointer &it) const
void end (TPointer &it) const
uint32_t payload_size_word (void) const
void status (TPointer &it) const
uint32_t nspecific () const
void specific_header (TPointer &it) const
virtual uint32_t nchildren () const
virtual void child (TPointer &p, size_t n) const
virtual void child_check (TPointer &p, size_t n) const
virtual uint32_t children (TPointer *p, size_t max) const
 Header (const TPointer &it, uint32_t match)
 Header ()
 Header (const Header &other)
virtual ~Header ()
Headeroperator= (const Header &other)
Headerassign (const TPointer &it, uint32_t match)
virtual bool check () const
uint32_t marker () const
uint32_t fragment_size_word () const
uint32_t header_size_word () const
uint32_t version () const
uint32_t source_id () const
uint32_t nstatus () const
void start (TPointer &it) const
void payload (TPointer &it) const
void end (TPointer &it) const
uint32_t payload_size_word (void) const
void status (TPointer &it) const
uint32_t nspecific () const
void specific_header (TPointer &it) const
virtual uint32_t nchildren () const
virtual void child (TPointer &p, size_t n) const
virtual void child_check (TPointer &p, size_t n) const
virtual uint32_t children (TPointer *p, size_t max) const
 Header (const TPointer &it, uint32_t match)
 Header ()
 Header (const Header &other)
virtual ~Header ()
Headeroperator= (const Header &other)
Headerassign (const TPointer &it, uint32_t match)
virtual bool check () const
uint32_t marker () const
uint32_t fragment_size_word () const
uint32_t header_size_word () const
uint32_t version () const
uint32_t source_id () const
uint32_t nstatus () const
void start (TPointer &it) const
void payload (TPointer &it) const
void end (TPointer &it) const
uint32_t payload_size_word (void) const
void status (TPointer &it) const
uint32_t nspecific () const
void specific_header (TPointer &it) const
virtual uint32_t nchildren () const
virtual void child (TPointer &p, size_t n) const
virtual void child_check (TPointer &p, size_t n) const
virtual uint32_t children (TPointer *p, size_t max) const

Detailed Description

template<class TPointer>
class eformat::Header< TPointer >

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:

  1. The generic part, containing the header type, size and version information;
  2. The specific part, containing data that is specific for a particular fragment.

Definition at line 40 of file Event/eformat/include/eformat/Header.h.

Constructor & Destructor Documentation

◆ Header() [1/9]

template<class TPointer>
eformat::Header< TPointer >::Header ( const TPointer & it,
uint32_t match )

To build a header given the containing buffer. I need to know where the header starts in order to do that.

Parameters
itThe exact position where this header should start.
matchThe word that this header should match.

Definition at line 232 of file Event/eformat/include/eformat/Header.h.

232 : m_start( it ) {
233 ERS_DEBUG_3( "Building header 0x%x from iterator", match );
234 if ( marker() != match ) { throw EFORMAT_WRONG_MARKER( marker(), match ); }
235 ERS_DEBUG_1( "Initialized header with source identifier = %s",
237}
#define EFORMAT_WRONG_MARKER(current, expected)
#define ERS_DEBUG_1(...)
#define ERS_DEBUG_3(...)

Referenced by assign(), eformat::FullEventFragment< TPointer >::FullEventFragment(), eformat::FullEventFragment< const uint32_t * >::FullEventFragment(), eformat::FullEventFragment< const uint32_t * >::FullEventFragment(), Header(), operator=(), eformat::ROBFragment< TPointer >::ROBFragment(), eformat::ROBFragment< TPointer >::ROBFragment(), eformat::ROBFragment< TPointer >::ROBFragment(), eformat::ROSFragment< TPointer >::ROSFragment(), eformat::ROSFragment< TPointer >::ROSFragment(), eformat::ROSFragment< TPointer >::ROSFragment(), eformat::SubDetectorFragment< TPointer >::SubDetectorFragment(), eformat::SubDetectorFragment< const uint32_t * >::SubDetectorFragment(), and eformat::SubDetectorFragment< const uint32_t * >::SubDetectorFragment().

◆ Header() [2/9]

template<class TPointer>
eformat::Header< TPointer >::Header ( )
inline

Builds an empty, otherwise useless Header

Definition at line 55 of file Event/eformat/include/eformat/Header.h.

55: m_start() {}

◆ Header() [3/9]

template<class TPointer>
eformat::Header< TPointer >::Header ( const Header< TPointer > & other)
inline

Copy constructor

Parameters
otherThe other header to construct from

Definition at line 62 of file Event/eformat/include/eformat/Header.h.

62: m_start( other.m_start ) {}

◆ ~Header() [1/3]

template<class TPointer>
virtual eformat::Header< TPointer >::~Header ( )
inlinevirtual

Destructor virtualisation

Definition at line 67 of file Event/eformat/include/eformat/Header.h.

67{}

◆ Header() [4/9]

template<class TPointer>
eformat::Header< TPointer >::Header ( const TPointer & it,
uint32_t match )

To build a header given the containing buffer. I need to know where the header starts in order to do that.

Parameters
itThe exact position where this header should start.
matchThe word that this header should match.

◆ Header() [5/9]

template<class TPointer>
eformat::Header< TPointer >::Header ( )
inline

Builds an empty, otherwise useless Header

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

55: m_start() {}

◆ Header() [6/9]

template<class TPointer>
eformat::Header< TPointer >::Header ( const Header< TPointer > & other)
inline

Copy constructor

Parameters
otherThe other header to construct from

Definition at line 62 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

62: m_start( other.m_start ) {}

◆ ~Header() [2/3]

template<class TPointer>
virtual eformat::Header< TPointer >::~Header ( )
inlinevirtual

Destructor virtualisation

Definition at line 67 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

67{}

◆ Header() [7/9]

template<class TPointer>
eformat::Header< TPointer >::Header ( const TPointer & it,
uint32_t match )

To build a header given the containing buffer. I need to know where the header starts in order to do that.

Parameters
itThe exact position where this header should start.
matchThe word that this header should match.

◆ Header() [8/9]

template<class TPointer>
eformat::Header< TPointer >::Header ( )
inline

Builds an empty, otherwise useless Header

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

55: m_start() {}

◆ Header() [9/9]

template<class TPointer>
eformat::Header< TPointer >::Header ( const Header< TPointer > & other)
inline

Copy constructor

Parameters
otherThe other header to construct from

Definition at line 62 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

62: m_start( other.m_start ) {}

◆ ~Header() [3/3]

template<class TPointer>
virtual eformat::Header< TPointer >::~Header ( )
inlinevirtual

Destructor virtualisation

Definition at line 67 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

67{}

Member Function Documentation

◆ assign() [1/3]

template<class TPointer>
eformat::Header< TPointer > & eformat::Header< TPointer >::assign ( const TPointer & it,
uint32_t match )

Reassign this header

Parameters
itThe exact position where this header should start.
matchThe word that this header should match.

Definition at line 240 of file Event/eformat/include/eformat/Header.h.

241 {
242 ERS_DEBUG_3( "Rebuilding header 0x%x from iterator", match );
243 m_start = it;
244 if ( marker() != match ) { throw EFORMAT_WRONG_MARKER( marker(), match ); }
245 ERS_DEBUG_1( "Re-initialized header with source identifier = %s",
247 return *this;
248}

Referenced by eformat::FullEventFragment< TPointer >::assign(), eformat::ROBFragment< TPointer >::assign(), eformat::ROSFragment< TPointer >::assign(), and eformat::SubDetectorFragment< TPointer >::assign().

◆ assign() [2/3]

template<class TPointer>
Header & eformat::Header< TPointer >::assign ( const TPointer & it,
uint32_t match )

Reassign this header

Parameters
itThe exact position where this header should start.
matchThe word that this header should match.

◆ assign() [3/3]

template<class TPointer>
Header & eformat::Header< TPointer >::assign ( const TPointer & it,
uint32_t match )

Reassign this header

Parameters
itThe exact position where this header should start.
matchThe word that this header should match.

◆ check() [1/3]

template<class TPointer>
bool eformat::Header< TPointer >::check ( ) const
virtual

Says if the generic part of the header is valid. This may throw exceptions.

Reimplemented in eformat::FullEventFragment< TPointer >, eformat::FullEventFragment< TPointer >, eformat::FullEventFragment< TPointer >, eformat::FullEventFragment< const uint32_t * >, eformat::FullEventFragment< const uint32_t * >, eformat::FullEventFragment< const uint32_t * >, eformat::ROBFragment< TPointer >, eformat::ROBFragment< TPointer >, eformat::ROBFragment< TPointer >, eformat::ROSFragment< TPointer >, eformat::ROSFragment< TPointer >, eformat::ROSFragment< TPointer >, eformat::SubDetectorFragment< TPointer >, eformat::SubDetectorFragment< TPointer >, eformat::SubDetectorFragment< TPointer >, eformat::SubDetectorFragment< const uint32_t * >, eformat::SubDetectorFragment< const uint32_t * >, and eformat::SubDetectorFragment< const uint32_t * >.

Definition at line 250 of file Event/eformat/include/eformat/Header.h.

250 {
251 ERS_DEBUG_2( "Checking for consistency of fragment of type %s [%s]",
256 if ( header_size_word() != ( 7 + nstatus() + nspecific() ) )
257 throw EFORMAT_SIZE_CHECK( header_size_word(), ( 7 + nstatus() + nspecific() ) );
258 return true;
259}
#define EFORMAT_BAD_VERSION(current, supported)
#define EFORMAT_SIZE_CHECK(actual, informed)
#define ERS_DEBUG_2(...)

Referenced by eformat::FullEventFragment< TPointer >::check(), eformat::ROBFragment< TPointer >::check(), eformat::ROSFragment< TPointer >::check(), and eformat::SubDetectorFragment< TPointer >::check().

◆ check() [2/3]

◆ check() [3/3]

◆ child() [1/3]

template<class TPointer>
void eformat::Header< TPointer >::child ( TPointer & p,
size_t n ) const
virtual

Returns the nth child fragment. If the nth fragment doesn't exist, the behaviour is undefined.

Parameters
pA preallocated pointer you should provide.
nThe fragment position, starting at zero, of the child fragment you would like to get.

Definition at line 269 of file Event/eformat/include/eformat/Header.h.

269 {
270 ERS_DEBUG_2( "User asked for child %ud of fragment type %s [%s]", n,
274 payload( next );
275 for ( size_t i = 0; i < n; ++i ) next += next[1];
276 ERS_DEBUG_3( "Set user object" );
277 p = next;
278}

Referenced by eformat::FullEventFragment< TPointer >::check_tree(), eformat::ROSFragment< TPointer >::check_tree(), eformat::SubDetectorFragment< TPointer >::check_tree(), and child_check().

◆ child() [2/3]

template<class TPointer>
virtual void eformat::Header< TPointer >::child ( TPointer & p,
size_t n ) const
virtual

Returns the nth child fragment. If the nth fragment doesn't exist, the behaviour is undefined.

Parameters
pA preallocated pointer you should provide.
nThe fragment position, starting at zero, of the child fragment you would like to get.

◆ child() [3/3]

template<class TPointer>
virtual void eformat::Header< TPointer >::child ( TPointer & p,
size_t n ) const
virtual

Returns the nth child fragment. If the nth fragment doesn't exist, the behaviour is undefined.

Parameters
pA preallocated pointer you should provide.
nThe fragment position, starting at zero, of the child fragment you would like to get.

◆ child_check() [1/3]

template<class TPointer>
void eformat::Header< TPointer >::child_check ( TPointer & p,
size_t n ) const
virtual

Returns the nth child fragment. If the nth fragment doesn't exist, an exception is thrown.

Warning
Use this method with care, it is slower than the equivalent method that doesn't check.
Parameters
pA preallocated pointer you should provide.
nThe fragment position, starting at zero, of the child fragment you would like to get.

Definition at line 281 of file Event/eformat/include/eformat/Header.h.

281 {
283 if ( n >= total ) throw EFORMAT_NO_SUCH_CHILD( n, total );
284 child( p, n );
285}
#define EFORMAT_NO_SUCH_CHILD(req, total)
virtual void child(TPointer &p, size_t n) const

◆ child_check() [2/3]

template<class TPointer>
virtual void eformat::Header< TPointer >::child_check ( TPointer & p,
size_t n ) const
virtual

Returns the nth child fragment. If the nth fragment doesn't exist, an exception is thrown.

Warning
Use this method with care, it is slower than the equivalent method that doesn't check.
Parameters
pA preallocated pointer you should provide.
nThe fragment position, starting at zero, of the child fragment you would like to get.

◆ child_check() [3/3]

template<class TPointer>
virtual void eformat::Header< TPointer >::child_check ( TPointer & p,
size_t n ) const
virtual

Returns the nth child fragment. If the nth fragment doesn't exist, an exception is thrown.

Warning
Use this method with care, it is slower than the equivalent method that doesn't check.
Parameters
pA preallocated pointer you should provide.
nThe fragment position, starting at zero, of the child fragment you would like to get.

◆ children() [1/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::children ( TPointer * p,
size_t max ) const
virtual

Returns all the children of this fragment. The input to this method is a valid set of iterators to existing, pre-allocated pointers

Parameters
pA pointer to a set of preallocated TPointer's to set to the position of the children of this fragment.
maxThe maximum number of children, p can point to.
Returns
The number of children found on this fragment

Definition at line 288 of file Event/eformat/include/eformat/Header.h.

288 {
289 ERS_DEBUG_2( "Retrieving all children..." );
292 try
293 {
294 return find_fragments( child_marker( static_cast<HeaderMarker>( marker() ) ),
296 } catch ( WrongMarkerIssue& ex )
297 {
298 // This normally means the fragment size is wrong...
300 }
301 return 0;
302}
size_t find_fragments(eformat::HeaderMarker marker, TPointer block_start, size_t block_size, TPointer *frag=0, size_t max_count=0)
HeaderMarker child_marker(HeaderMarker e)

Referenced by components(), eformat::get_robs(), main(), and nchildren().

◆ children() [2/3]

template<class TPointer>
virtual uint32_t eformat::Header< TPointer >::children ( TPointer * p,
size_t max ) const
virtual

Returns all the children of this fragment. The input to this method is a valid set of iterators to existing, pre-allocated pointers

Parameters
pA pointer to a set of preallocated TPointer's to set to the position of the children of this fragment.
maxThe maximum number of children, p can point to.
Returns
The number of children found on this fragment

◆ children() [3/3]

template<class TPointer>
virtual uint32_t eformat::Header< TPointer >::children ( TPointer * p,
size_t max ) const
virtual

Returns all the children of this fragment. The input to this method is a valid set of iterators to existing, pre-allocated pointers

Parameters
pA pointer to a set of preallocated TPointer's to set to the position of the children of this fragment.
maxThe maximum number of children, p can point to.
Returns
The number of children found on this fragment

◆ end() [1/3]

template<class TPointer>
void eformat::Header< TPointer >::end ( TPointer & it) const
inline

Sets the pointer to one-past my end position

Parameters
itThe pointer to set

Definition at line 146 of file Event/eformat/include/eformat/Header.h.

146 {
147 it = m_start;
149 }

◆ end() [2/3]

template<class TPointer>
void eformat::Header< TPointer >::end ( TPointer & it) const
inline

Sets the pointer to one-past my end position

Parameters
itThe pointer to set

Definition at line 146 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

146 {
147 it = m_start;
149 }

◆ end() [3/3]

template<class TPointer>
void eformat::Header< TPointer >::end ( TPointer & it) const
inline

Sets the pointer to one-past my end position

Parameters
itThe pointer to set

Definition at line 146 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

146 {
147 it = m_start;
149 }

◆ fragment_size_word() [1/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::fragment_size_word ( ) const
inline

Returns the size, in words, of the current fragment.

Definition at line 101 of file Event/eformat/include/eformat/Header.h.

101{ return m_start[1]; }

Referenced by children(), end(), EFEventLoopMgr::executeEvent(), and payload_size_word().

◆ fragment_size_word() [2/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::fragment_size_word ( ) const
inline

Returns the size, in words, of the current fragment.

Definition at line 101 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

101{ return m_start[1]; }

◆ fragment_size_word() [3/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::fragment_size_word ( ) const
inline

Returns the size, in words, of the current fragment.

Definition at line 101 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

101{ return m_start[1]; }

◆ header_size_word() [1/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::header_size_word ( ) const
inline

Returns the size, in words, of the current header. That does include the specific part of the header.

Definition at line 107 of file Event/eformat/include/eformat/Header.h.

107{ return m_start[2]; }

Referenced by check(), payload(), and payload_size_word().

◆ header_size_word() [2/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::header_size_word ( ) const
inline

Returns the size, in words, of the current header. That does include the specific part of the header.

Definition at line 107 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

107{ return m_start[2]; }

◆ header_size_word() [3/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::header_size_word ( ) const
inline

Returns the size, in words, of the current header. That does include the specific part of the header.

Definition at line 107 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

107{ return m_start[2]; }

◆ marker() [1/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::marker ( ) const
inline

Returns the fragment type.

Definition at line 96 of file Event/eformat/include/eformat/Header.h.

96{ return m_start[0]; }

Referenced by assign(), check(), child(), children(), Header(), and nchildren().

◆ marker() [2/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::marker ( ) const
inline

Returns the fragment type.

Definition at line 96 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

96{ return m_start[0]; }

◆ marker() [3/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::marker ( ) const
inline

Returns the fragment type.

Definition at line 96 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

96{ return m_start[0]; }

◆ nchildren() [1/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::nchildren ( ) const
virtual

Returns the number of children available.

Definition at line 261 of file Event/eformat/include/eformat/Header.h.

261 {
262 ERS_DEBUG_2( "User asked for number of children of fragment type %s [%s]",
265 return children( 0, 0 );
266}
virtual uint32_t children(TPointer *p, size_t max) const

Referenced by eformat::FullEventFragment< TPointer >::check_tree(), eformat::ROSFragment< TPointer >::check_tree(), eformat::SubDetectorFragment< TPointer >::check_tree(), child_check(), components(), and EFEventLoopMgr::executeEvent().

◆ nchildren() [2/3]

template<class TPointer>
virtual uint32_t eformat::Header< TPointer >::nchildren ( ) const
virtual

Returns the number of children available.

◆ nchildren() [3/3]

template<class TPointer>
virtual uint32_t eformat::Header< TPointer >::nchildren ( ) const
virtual

Returns the number of children available.

◆ nspecific() [1/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::nspecific ( ) const
inline

◆ nspecific() [2/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::nspecific ( ) const
inline

Returns the number of specific words available in the specific header part

Definition at line 172 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

172{ return m_start[6 + nstatus()]; }

◆ nspecific() [3/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::nspecific ( ) const
inline

Returns the number of specific words available in the specific header part

Definition at line 172 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

172{ return m_start[6 + nstatus()]; }

◆ nstatus() [1/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::nstatus ( ) const
inline

Returns the number of status words available

Definition at line 122 of file Event/eformat/include/eformat/Header.h.

122{ return m_start[5]; }

Referenced by check(), nspecific(), and specific_header().

◆ nstatus() [2/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::nstatus ( ) const
inline

Returns the number of status words available

Definition at line 122 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

122{ return m_start[5]; }

◆ nstatus() [3/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::nstatus ( ) const
inline

Returns the number of status words available

Definition at line 122 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

122{ return m_start[5]; }

◆ operator=() [1/3]

template<class TPointer>
Header & eformat::Header< TPointer >::operator= ( const Header< TPointer > & other)
inline

Assigment operator

Parameters
otherThe other header to assign from

Definition at line 74 of file Event/eformat/include/eformat/Header.h.

74 {
75 m_start = other.m_start;
76 return *this;
77 }

Referenced by eformat::FullEventFragment< const uint32_t * >::operator=(), eformat::ROBFragment< TPointer >::operator=(), eformat::ROSFragment< TPointer >::operator=(), and eformat::SubDetectorFragment< const uint32_t * >::operator=().

◆ operator=() [2/3]

template<class TPointer>
Header & eformat::Header< TPointer >::operator= ( const Header< TPointer > & other)
inline

Assigment operator

Parameters
otherThe other header to assign from

Definition at line 74 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

74 {
75 m_start = other.m_start;
76 return *this;
77 }

◆ operator=() [3/3]

template<class TPointer>
Header & eformat::Header< TPointer >::operator= ( const Header< TPointer > & other)
inline

Assigment operator

Parameters
otherThe other header to assign from

Definition at line 74 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

74 {
75 m_start = other.m_start;
76 return *this;
77 }

◆ payload() [1/3]

template<class TPointer>
void eformat::Header< TPointer >::payload ( TPointer & it) const
inline

Sets the pointer to where the payload starts

Parameters
itThe pointer to set

Definition at line 136 of file Event/eformat/include/eformat/Header.h.

136 {
137 it = m_start;
138 it += header_size_word();
139 }

Referenced by child(), and children().

◆ payload() [2/3]

template<class TPointer>
void eformat::Header< TPointer >::payload ( TPointer & it) const
inline

Sets the pointer to where the payload starts

Parameters
itThe pointer to set

Definition at line 136 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

136 {
137 it = m_start;
138 it += header_size_word();
139 }

◆ payload() [3/3]

template<class TPointer>
void eformat::Header< TPointer >::payload ( TPointer & it) const
inline

Sets the pointer to where the payload starts

Parameters
itThe pointer to set

Definition at line 136 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

136 {
137 it = m_start;
138 it += header_size_word();
139 }

◆ payload_size_word() [1/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::payload_size_word ( void ) const
inline

◆ payload_size_word() [2/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::payload_size_word ( void ) const
inline

Returns the payload size

Definition at line 154 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

154 {
156 }

◆ payload_size_word() [3/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::payload_size_word ( void ) const
inline

Returns the payload size

Definition at line 154 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

154 {
156 }

◆ source_id() [1/3]

◆ source_id() [2/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::source_id ( ) const
inline

Returns the full source identifier.

Definition at line 117 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

117{ return m_start[4]; }

◆ source_id() [3/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::source_id ( ) const
inline

Returns the full source identifier.

Definition at line 117 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

117{ return m_start[4]; }

◆ specific_header() [1/3]

template<class TPointer>
void eformat::Header< TPointer >::specific_header ( TPointer & it) const
inline

◆ specific_header() [2/3]

template<class TPointer>
void eformat::Header< TPointer >::specific_header ( TPointer & it) const
inline

Returns an iterator to the start of the specific header part (this does not include the number of specific header fragments)

Parameters
itAn updateable iterator you should provide.

Definition at line 180 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

180 {
181 it = m_start;
182 it += 7 + nstatus();
183 }

◆ specific_header() [3/3]

template<class TPointer>
void eformat::Header< TPointer >::specific_header ( TPointer & it) const
inline

Returns an iterator to the start of the specific header part (this does not include the number of specific header fragments)

Parameters
itAn updateable iterator you should provide.

Definition at line 180 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

180 {
181 it = m_start;
182 it += 7 + nstatus();
183 }

◆ start() [1/3]

template<class TPointer>
void eformat::Header< TPointer >::start ( TPointer & it) const
inline

Sets the pointer to my start

Parameters
itThe pointer to set

Definition at line 129 of file Event/eformat/include/eformat/Header.h.

129{ it = m_start; }

◆ start() [2/3]

template<class TPointer>
void eformat::Header< TPointer >::start ( TPointer & it) const
inline

Sets the pointer to my start

Parameters
itThe pointer to set

Definition at line 129 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

129{ it = m_start; }

◆ start() [3/3]

template<class TPointer>
void eformat::Header< TPointer >::start ( TPointer & it) const
inline

Sets the pointer to my start

Parameters
itThe pointer to set

Definition at line 129 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

129{ it = m_start; }

◆ status() [1/3]

template<class TPointer>
void eformat::Header< TPointer >::status ( TPointer & it) const
inline

Returns the status words, as an iterator to the status words available.

Parameters
itAn updateable iterator you should provide.

Definition at line 163 of file Event/eformat/include/eformat/Header.h.

163 {
164 it = m_start;
165 it += 6;
166 }

◆ status() [2/3]

template<class TPointer>
void eformat::Header< TPointer >::status ( TPointer & it) const
inline

Returns the status words, as an iterator to the status words available.

Parameters
itAn updateable iterator you should provide.

Definition at line 163 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

163 {
164 it = m_start;
165 it += 6;
166 }

◆ status() [3/3]

template<class TPointer>
void eformat::Header< TPointer >::status ( TPointer & it) const
inline

Returns the status words, as an iterator to the status words available.

Parameters
itAn updateable iterator you should provide.

Definition at line 163 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

163 {
164 it = m_start;
165 it += 6;
166 }

◆ version() [1/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::version ( ) const
inline

Returns the formatting version.

Definition at line 112 of file Event/eformat/include/eformat/Header.h.

112{ return m_start[3]; }

Referenced by check().

◆ version() [2/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::version ( ) const
inline

Returns the formatting version.

Definition at line 112 of file InstallArea/x86_64-el9-gcc13-dbg/include/eformat/Header.h.

112{ return m_start[3]; }

◆ version() [3/3]

template<class TPointer>
uint32_t eformat::Header< TPointer >::version ( ) const
inline

Returns the formatting version.

Definition at line 112 of file InstallArea/x86_64-el9-gcc13-opt/include/eformat/Header.h.

112{ return m_start[3]; }

The documentation for this class was generated from the following files: