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
 Stores minimal metadata for one frame-style time window. More...
 

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.

The GFrameHeader stores:

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

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

Units:

  • units are caller-defined, for example ms, ns, or 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.