|
gdata
|
#include <gFrameHeader.h>
Public Member Functions | |
| GFrameHeader (long int frameID_, double frameDuration_, std::shared_ptr< GLogger > logger) | |
| Construct a frame header. | |
| ~GFrameHeader () | |
| Destructor (logs for debug builds/configurations). | |
| long int | getFrameID () const |
| Get the frame identifier. | |
| long int | getTime () const |
| Get 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: create a header with a unique frame ID. | |
Definition at line 30 of file gFrameHeader.h.
|
inline |
The constructor stores the provided identifier and duration and emits a debug message.
Ownership:
| frameID_ | Frame index/identifier (monotonic in typical usage). |
| frameDuration_ | Duration of one frame in caller-defined units. |
| logger | Logger used for construction/destruction diagnostics. |
Definition at line 46 of file gFrameHeader.h.
|
inline |
Logging is guarded by a null check to tolerate cases where the logger is absent.
Definition at line 57 of file gFrameHeader.h.
|
inlinestatic |
The duration is set to a fixed example value. This is meant for examples/tests, not physics production.
Threading:
| logger | Logger instance. |
Definition at line 72 of file gFrameHeader.h.
|
inline |
Definition at line 82 of file gFrameHeader.h.
|
inline |
Computed as:
Units are inherited from frameDuration and are therefore caller-defined.
Definition at line 97 of file gFrameHeader.h.