ifw-daq  3.0.0-pre2
IFW Data Acquisition modules
Classes | Functions
ocmDaqService.hpp File Reference

Declaration of OcmDaqService. More...

#include <daq/config.hpp>
#include <rad/ioExecutor.hpp>
#include <Daqif.hpp>
#include <boost/asio/io_context.hpp>
#include <daq/daqContext.hpp>
#include <daq/eventLog.hpp>
#include <daq/eventLogObserver.hpp>
#include <daq/manager.hpp>
#include <log4cplus/logger.h>
#include <mal/Mal.hpp>

Go to the source code of this file.

Classes

struct  ParsedSource
 
class  OcmDaqService
 Implements the MAL interface daqif::OcmDaq (async version). More...
 

Functions

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...
 
daq::DaqContext ParseStartDaqContext (std::string const &properties)
 Parse the JSON properties user provides with StartDaq. More...
 
daq::DaqContext ParseStartDaqV2 (std::string const &specification)
 Parse JSON specification and returns corresponding DaqContext. More...
 

Detailed Description

Declaration of OcmDaqService.

Definition in file ocmDaqService.hpp.

Function Documentation

◆ operator<<()

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

Definition at line 117 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 122 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 159 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.
std::invalid_argumenton argument errors.

Definition at line 75 of file ocmDaqService.cpp.

◆ ParseStartDaqV2()

daq::DaqContext ParseStartDaqV2 ( std::string const &  specification)

Parse JSON specification and returns corresponding DaqContext.

Exceptions
daq::json::StartDaqV2SpecErrorOn schema error
daq::json::SchemaErrorOn schema error
nlohmann::json::exceptionon parsing error
std::invalid_argumenton argument errors.
std::exception-derivedexception on other errors.