ifw-daq  3.0.0-pre2
IFW Data Acquisition modules
Classes | Namespaces | Functions
dpSpec.hpp File Reference
#include <filesystem>
#include <optional>
#include <string>
#include <string_view>
#include <variant>
#include <vector>
#include <nlohmann/json.hpp>
#include <daq/fits/keyword.hpp>
#include <daq/json/commonSpecTypes.hpp>
#include <daq/json/schemaError.hpp>

Go to the source code of this file.

Classes

struct  daq::json::DpSpecError
 
struct  daq::json::DpSpec
 Close representation of the JSON structure but with stronger types. More...
 
struct  daq::json::DpSpec::Target
 
struct  daq::json::Location
 Describes parsed location string into its components "host" and "path". More...
 

Namespaces

 daq
 
 daq::json
 

Functions

DpSpec daq::json::ParseDpSpec (nlohmann::json const &spec)
 Parse JSON to construct the DpSpec structure. More...
 
Location daq::json::ParseSourceLocation (std::string const &location)
 Parse location string from DpSpec into component parts. More...
 
void daq::json::to_json (nlohmann::json &j, DpSpec const &s)
 
void daq::json::to_json (nlohmann::json &j, DpSpec::Target const &s)
 
void daq::json::to_json (nlohmann::json &j, DpSpec::SourceTypes const &s)
 

Detailed Description

Definition in file dpSpec.hpp.


Class Documentation

◆ daq::json::DpSpec

struct daq::json::DpSpec

Close representation of the JSON structure but with stronger types.

Definition at line 30 of file dpSpec.hpp.

Class Members
typedef variant< FitsKeywordsSource, FitsFileSource > SourceTypes
Class Members
string id
vector< SourceTypes > sources
Target target

◆ daq::json::DpSpec::Target

struct daq::json::DpSpec::Target

Definition at line 31 of file dpSpec.hpp.

Class Members
string file_id
string file_prefix Optioal user chosen file prefix to make it easier to identify the produced file.
optional< FitsFileSource > source