ifw-daq  2.1.0-pre1
IFW Data Acquisition modules
Functions
ocmDaqService.cpp File Reference

Declaration of OcmDaqService. More...

#include "ocmDaqService.hpp"
#include <algorithm>
#include <fmt/format.h>
#include <fmt/ostream.h>
#include <log4cplus/loggingmacros.h>
#include <mal/rr/qos/ConnectionTime.hpp>
#include <nlohmann/json.hpp>
#include <daq/conversion.hpp>
#include <daq/daqController.hpp>
#include <daq/error/report.hpp>
#include <daq/fits/json.hpp>
#include <daqif/state.hpp>

Go to the source code of this file.

Functions

daq::DaqContext ParseStartDaqContext (std::string const &json_properties)
 Parse the JSON properties user provides with StartDaq. More...
 
std::ostream & operator<< (std::ostream &os, ParsedSource const &s)
 
ParsedSource ParseSourceUri (std::string_view s)
 Parse user provided string in the format "<name>@<rr-uri>". More...
 
std::vector< ParsedSourceParseSourceUris (std::string_view s)
 Parse user provided string in the format "<name>@<rr-uri>[ <name>@...]". More...
 

Detailed Description

Declaration of OcmDaqService.

Definition in file ocmDaqService.cpp.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
ParsedSource const &  s 
)

Definition at line 88 of file ocmDaqService.cpp.

◆ ParseSourceUri()

ParsedSource ParseSourceUri ( std::string_view  s)

Parse user provided string in the format "<name>@<rr-uri>".

Exceptions
std::invalid_argumenton errors.

Definition at line 93 of file ocmDaqService.cpp.

◆ ParseSourceUris()

std::vector<ParsedSource> ParseSourceUris ( std::string_view  s)

Parse user provided string in the format "<name>@<rr-uri>[ <name>@...]".

Exceptions
std::invalid_argumenton errors.

Definition at line 130 of file ocmDaqService.cpp.

◆ ParseStartDaqContext()

daq::DaqContext ParseStartDaqContext ( std::string const &  properties)

Parse the JSON properties user provides with StartDaq.

{"keywords": KEYWORDS, "awaitInterval": DURATION}

Exceptions
nlohmann::json::exceptionon parsing errors.

Definition at line 46 of file ocmDaqService.cpp.