|
LDMX Software
|
the header that the Rogue StreamWriter puts includes at the beginning of each frame. More...
#include <RogueFrameHeader.h>
Public Member Functions | |
| utility::Reader & | read (utility::Reader &r) |
| read the next rogue frame header into memory | |
| int | channel () const |
| get the channel this data was written to | |
| unsigned int | size () const |
| get the size of the frame not including this header | |
| uint16_t | flags () const |
| get the flags included in the header | |
| uint8_t | error () const |
| get specifc error flags included in the header | |
| uint8_t | trailer () const |
| get the trailer byte for checking | |
| bool | probablyYaml () const |
| check if this frame is probably a yaml dump | |
Private Attributes | |
| uint32_t | size_ |
| size of frame written by StreamWriter | |
| uint16_t | flags_ |
| extra flags written by StreamWriter | |
| uint8_t | error_ |
| error flags written by StreamWriter | |
| uint8_t | channel_ |
| StreamWriter channel. | |
| uint8_t | trailer_ |
| last byte stored in frame | |
the header that the Rogue StreamWriter puts includes at the beginning of each frame.
Definition at line 16 of file RogueFrameHeader.h.
|
inline |
get the channel this data was written to
Definition at line 21 of file RogueFrameHeader.h.
References channel_.
|
inline |
get specifc error flags included in the header
Definition at line 27 of file RogueFrameHeader.h.
References error_.
|
inline |
get the flags included in the header
Definition at line 25 of file RogueFrameHeader.h.
References flags_.
|
inline |
check if this frame is probably a yaml dump
Definition at line 31 of file RogueFrameHeader.h.
References trailer_.
| utility::Reader & packing::RogueFrameHeader::read | ( | utility::Reader & | r | ) |
read the next rogue frame header into memory
Definition at line 5 of file RogueFrameHeader.cxx.
References channel_, error_, flags_, packing::utility::Reader::seek(), size_, packing::utility::Reader::tell(), and trailer_.
|
inline |
get the size of the frame not including this header
Definition at line 23 of file RogueFrameHeader.h.
References size_.
|
inline |
get the trailer byte for checking
Definition at line 29 of file RogueFrameHeader.h.
References trailer_.
|
private |
StreamWriter channel.
Definition at line 48 of file RogueFrameHeader.h.
|
private |
error flags written by StreamWriter
Definition at line 46 of file RogueFrameHeader.h.
|
private |
extra flags written by StreamWriter
Definition at line 44 of file RogueFrameHeader.h.
|
private |
size of frame written by StreamWriter
The number written on disk is 4 more than the number we store here for later use because the number on disk does not include the other 4 bytes we parse into the other members below.
Definition at line 42 of file RogueFrameHeader.h.
|
private |
last byte stored in frame
we need to check the trailer byte as well since many of the early runs took data with both the data and yaml-dump of the config stored in the same channel
The yaml-dump has a characteristic trailer byte 0x0a
Definition at line 58 of file RogueFrameHeader.h.
Referenced by probablyYaml(), read(), and trailer().