gstreamer
Loading...
Searching...
No Matches
publishTrueInfo.cc
Go to the documentation of this file.
1// gstreamer
4
5// Non-Doxygen implementation file: behavior is documented in the header.
6bool GstreamerRootFactory::publishEventTrueInfoDataImpl(const std::string& detectorName,
7 const std::vector<const GTrueInfoData*>& trueInfoData) {
8 if (rootfile == nullptr) { log->error(ERR_CANTOPENOUTPUT, "GstreamerRootFactory: file is not initialized"); }
9
10 // get or instantiate the root tree from the map
11 if (!trueInfoData.empty()) {
12 const auto& trueInforDataTree = getOrInstantiateTrueInfoDataTree(detectorName, trueInfoData.front());
13
14 return trueInforDataTree->fillTree(trueInfoData);
15 }
16
17 return false;
18}
std::shared_ptr< GLogger > log
void error(int exit_code, Args &&... args) const
Shared constants and error codes for the gstreamer module.
#define ERR_CANTOPENOUTPUT
Output medium could not be opened (file/device not accessible).