|
DUECA/DUSIME
|
Object to decode a control block. More...
#include <ControlBlock.hxx>
Public Member Functions | |
| ControlBlockRead (const char *header) | |
| Decode from only the header data, e.g. | |
| ControlBlockRead (DDFFMessageBuffer &buffer, std::ios::off_type offset) | |
| Decode from buffer. | |
Object to decode a control block.
The object's members contain the control block information.
| ControlBlockRead::ControlBlockRead | ( | const char * | header | ) |
Decode from only the header data, e.g.
when inspecting a file
| header | Buffer with header data, minimum size 28 bytes. |
| ControlBlockRead::ControlBlockRead | ( | DDFFMessageBuffer & | buffer, |
| std::ios::off_type | offset ) |
Decode from buffer.
Throws an exception when the checksum fails.
| buffer | Buffer with the data. |
| offset | Offset in the file, used to complete the error message on failure. |