ifw-daq  3.0.0-pre2
IFW Data Acquisition modules
Namespaces | Functions
json.cpp File Reference

Declares JSON support for serialization. More...

#include <daq/json.hpp>
#include <fmt/format.h>
#include <daq/daqContext.hpp>
#include <daq/fits/json.hpp>
#include <daq/status.hpp>

Go to the source code of this file.

Namespaces

 daq
 

Functions

void daq::to_json (nlohmann::json &j, Status const &p)
 
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 daq::to_json (nlohmann::json &j, Alert const &p)
 
void daq::to_json (nlohmann::json &j, DaqContext const &p)
 
void daq::to_json (nlohmann::json &j, DaqContext::Source const &p)
 
void daq::to_json (nlohmann::json &j, DpPart const &p)
 
void daq::from_json (nlohmann::json const &j, Status &p)
 
void daq::from_json (nlohmann::json const &j, Alert &p)
 
void daq::from_json (nlohmann::json const &j, DaqContext &p)
 
void daq::from_json (nlohmann::json const &j, DaqContext::Source &p)
 
void daq::from_json (nlohmann::json const &j, DpPart &p)
 

Detailed Description

Declares JSON support for serialization.

Definition in file json.cpp.