gdata
Loading...
Searching...
No Matches
gFrameHeader.h File Reference

Defines the GFrameHeader class, a minimal header describing a "frame". More...

#include "glogger.h"
#include <atomic>
#include <string>
Include dependency graph for gFrameHeader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  GFrameHeader
 

Detailed Description

A "frame" is a higher-level time grouping than an event. In streaming/readout-style output, the system may produce integrated payloads over a fixed time window (a frame).

The GFrameHeader stores:

  • a frame identifier (frameID)
  • a frame duration (frameDuration)

From these it can compute a deterministic time coordinate via getTime().

Units:

  • Units are caller-defined (ms, ns, ticks, ...).
  • The class does not enforce units; it simply combines ID and duration consistently.

Threading:

  • The static factory create() uses a thread-safe global counter for examples/tests.

Definition in file gFrameHeader.h.