13 #include <nlohmann/json.hpp>
24 NLOHMANN_JSON_SERIALIZE_ENUM(
State,
46 void to_json(nlohmann::json& j, Status
const& p);
48 void to_json(nlohmann::json& j, Alert
const& p);
50 void to_json(nlohmann::json& j, DaqContext
const& p);
52 void to_json(nlohmann::json& j, DaqContext::Source
const& p);
54 void to_json(nlohmann::json& j, DpPart
const& p);
57 void from_json(nlohmann::json
const& j, Status& p);
59 void from_json(nlohmann::json
const& j, Alert& p);
61 void from_json(nlohmann::json
const& j, DaqContext& p);
63 void from_json(nlohmann::json
const& j, DaqContext::Source& p);
65 void from_json(nlohmann::json
const& j, DpPart& p);
Contains declaration of daq::Context.
Declares daq::State and related functions.
void from_json(nlohmann::json const &j, Status &p)
State
Observable states of the data acquisition process.
@ Completed
Completed DAQ.
@ NotScheduled
Before daq is acknowledged by dpm it remains in NotScheduled.
@ Scheduled
daq is acknowledged by dpm and is scheduled for merging (i.e.
@ Releasing
Releasing Data Product to receivers.
@ Aborted
Data acquisition has been aborted by user.
@ Merging
DAQ is being merged.
@ Stopping
Transitional state between Acquiring and Stopped.
@ AbortingMerging
Transitional state for aborting during merging.
@ Transferring
Input files are being transferred.
@ Acquiring
All data sources have reported data acquisition is in progress.
@ Stopped
All data sources have reported they have stopped acquiring data.
@ Starting
Transitional state between NotStarted and Acquiring when sources have not begun acquiring data yet.
@ AbortingAcquiring
Transitional state for aborting during acquisition.
@ NotStarted
Initial state of data acquisition.
NLOHMANN_JSON_SERIALIZE_ENUM(State, { {State::NotStarted, "NotStarted"}, {State::Starting, "Starting"}, {State::Acquiring, "Acquiring"}, {State::Stopping, "Stopping"}, {State::Stopped, "Stopped"}, {State::NotScheduled, "NotScheduled"}, {State::Scheduled, "Scheduled"}, {State::Transferring, "Transferring"}, {State::Merging, "Merging"}, {State::Releasing, "Releasing"}, {State::AbortingAcquiring, "AbortingAcquiring"}, {State::AbortingMerging, "AbortingMerging"}, {State::Aborted, "Aborted"}, {State::Completed, "Completed"}, }) void to_json(nlohmann void to_json(nlohmann::json &j, Alert const &p)