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

Defines GEventHeader, the metadata header associated with one event container. More...

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

Go to the source code of this file.

Data Structures

class  GEventHeader
 Stores minimal metadata for one event. More...
 

Namespaces

namespace  geventheader
 

Functions

GOptions geventheader::defineOptions ()
 Defines the options subtree used by the event-header logger domain.
 

Variables

constexpr const char * GDATAEVENTHEADER_LOGGER = "event_header"
 

Detailed Description

GEventHeader stores the minimal identifying metadata for one event:

  • a local event number
  • a thread identifier
  • a formatted timestamp string

Typical usage:

  • construct explicitly when event identity is already known
  • use create() in examples and tests to generate deterministic headers

The header is normally owned by GEventDataCollection.

Definition in file gEventHeader.h.

Variable Documentation

◆ GDATAEVENTHEADER_LOGGER

constexpr const char* GDATAEVENTHEADER_LOGGER = "event_header"
constexpr

Definition at line 27 of file gEventHeader.h.