5bool GstreamerJsonFactory::publishEventHeaderImpl(
const std::unique_ptr<GEventHeader>& gevent_header) {
6 if (!is_building_event) {
16 timestamp = gevent_header->getTimeStamp();
17 thread_id = gevent_header->getThreadID();
21 current_event <<
"\"timestamp\": \"" << jsonEscape(timestamp) <<
"\""
22 <<
", \"thread_id\": " << thread_id
23 <<
", \"g4local_event\": " << gevent_header->getG4LocalEvn();
25 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
Generic publish-time error (null pointers, invalid state).