|
| | event () |
| | Default constructor. Creates an empty event. More...
|
| |
| | event (int size) |
| | Construct an event with a pre-allocated buffer. More...
|
| |
| virtual | ~event () |
| | Destructor. More...
|
| |
| void | show () |
| | Display the event contents to standard output. More...
|
| |
| void | init (std::vector< char > &buffer) |
| | Initialize the event from an existing buffer. More...
|
| |
| void | init (const char *buffer, int size) |
| | Initialize the event from a raw byte buffer. More...
|
| |
| void | getStructure (hipo::structure &str, int group, int item) |
| | Extract a structure from the event by group and item identifiers. More...
|
| |
| void | getStructure4 (hipo::structure &str, int group, int item) |
| | Extract a structure using 4-byte header format. More...
|
| |
| int | getTag () |
| |
| void | setTag (int tag) |
| |
| void | getStructure (hipo::bank &b) |
| | Read a bank from this event using the bank's schema definition. More...
|
| |
| void | read (hipo::bank &b) |
| | Read a bank from this event (alias for getStructure). More...
|
| |
| void | addStructure (hipo::structure &str) |
| | Add a structure to the event. More...
|
| |
| void | override (hipo::structure &str) |
| | Override an existing structure in the event. More...
|
| |
| void | remove (hipo::bank &str) |
| | Remove a bank from the event. More...
|
| |
| void | remove (int group, int item) |
| | Remove a structure from the event by group and item identifiers. More...
|
| |
| void | replace (hipo::bank &bank) |
| | Replace an existing bank in the event. More...
|
| |
| void | add (hipo::node &_n) |
| | Add a node to the event. More...
|
| |
| void | get (hipo::node &_n, int group, int item) |
| | Get a node from the event by group and item identifiers. More...
|
| |
| std::pair< int, int > | getStructurePosition (int group, int item) |
| | Find the position and length of a structure in the event buffer. More...
|
| |
| std::pair< int, int > | getStructurePosition4 (int group, int item) |
| | Find the position and length of a structure using 4-byte header format. More...
|
| |
| std::vector< char > & | getEventBuffer () |
| |
| int | getSize () |
| |
| void | reset () |
| | Reset the event to an empty state. More...
|
| |
| void | write (hipo::node &node) |
| | Write a node into this event. More...
|
| |
| void | read (hipo::node &node, int group, int item) |
| | Read a node from this event by group and item identifiers. More...
|
| |
|
|
Static methods for reading structures from an event buffer in memory. These do not require copying the event into a separate buffer.
|
| static std::pair< int, int > | getStructurePosition (const char *buffer, int group, int item) |
| | Find the position and length of a structure in a raw buffer. More...
|
| |
| static void | getStructure (const char *buffer, hipo::structure &str, int group, int item) |
| | Extract a structure from a raw buffer by group and item. More...
|
| |
| static void | get (const char *buffer, hipo::node &_n, int group, int item) |
| | Get a node from a raw buffer by group and item. More...
|
| |
| static void | getStructureNoCopy (const char *buffer, hipo::structure &str, int group, int item) |
| | Extract a structure from a raw buffer without copying the data. More...
|
| |
Represents a HIPO event, a container for multiple structures/banks.
Events are read from records and can be written to files. An event holds an internal byte buffer that contains serialized HIPO structures (banks), which can be extracted, added, removed, or replaced.
Definition at line 77 of file event.h.