8bool GstreamerJsonFactory::publishEventHeaderImpl(
const std::unique_ptr<GEventHeader>& gevent_header) {
9 if (!is_building_event) {
20 timestamp = gevent_header->getTimeStamp();
21 thread_id = gevent_header->getThreadID();
26 current_event <<
"\"timestamp\": \"" << jsonEscape(timestamp) <<
"\""
27 <<
", \"thread_id\": " << thread_id
28 <<
", \"g4local_event\": " << gevent_header->getG4LocalEvn();
30 current_event_has_header =
true;
std::shared_ptr< GLogger > log
void error(int exit_code, Args &&... args) const
Shared constants and error codes for the gstreamer module.
#define ERR_PUBLISH_ERROR
Publish sequence encountered invalid state or invalid input data.
JSON streamer plugin declarations.