|
gdata
|
Stores minimal metadata for one frame-style time window. More...
#include <gFrameHeader.h>
Public Member Functions | |
| GFrameHeader (long int frameID_, double frameDuration_, std::shared_ptr< GLogger > logger) | |
| Construct a frame header. | |
| ~GFrameHeader () | |
| Destructor. | |
| long int | getFrameID () const |
| Returns the frame identifier. | |
| long int | getTime () const |
| Returns a deterministic time coordinate for the frame. | |
Static Public Member Functions | |
| static std::unique_ptr< GFrameHeader > | create (std::shared_ptr< GLogger > logger) |
| Test/example factory creating a header with a unique frame ID. | |
Definition at line 44 of file gFrameHeader.h.
|
inline |
The constructor stores the provided identifier and duration and emits a debug message.
Ownership:
| frameID_ | Frame index or identifier, typically monotonic in usage. |
| frameDuration_ | Duration of one frame in caller-defined units. |
| logger | Logger used for construction/destruction diagnostics. |
Definition at line 60 of file gFrameHeader.h.
|
inline |
A debug message is emitted when a logger is available. Logging is guarded by a null check so destruction remains tolerant of absent logger instances.
Definition at line 72 of file gFrameHeader.h.
|
inlinestatic |
The duration is set to a fixed example value. This helper is intended for examples and tests rather than production payload generation.
Threading:
| logger | Logger instance. |
Definition at line 87 of file gFrameHeader.h.
|
inline |
Definition at line 98 of file gFrameHeader.h.
|
inline |
Computed as:
Units are inherited from frameDuration and are therefore caller-defined.
Definition at line 113 of file gFrameHeader.h.