8 #ifndef DAQ_OCM_DAQ_FITS_JSON_HPP_
9 #define DAQ_OCM_DAQ_FITS_JSON_HPP_
10 #include <nlohmann/json.hpp>
50 nlohmann::json
const& keywords,
51 nlohmann::json_pointer<nlohmann::json>
const& = nlohmann::json_pointer<nlohmann::json>());
Contains data structure for FITS keywords.
nlohmann::json SerializeJsonKeywords(std::vector< KeywordVariant > const &keywords)
SerializeJsons keyword to JSON.
nlohmann::json SerializeJsonKeywordValue(BasicKeywordBase::ValueType const &value)
SerializeJsons the keyword value variant to JSON.
std::variant< ValueKeyword, EsoKeyword, LiteralKeyword > KeywordVariant
The different variants of keywords that are supported.
std::vector< KeywordVariant > ParseJsonKeywords(char const *keywords)
Parse and return FITS keywords.
nlohmann::json SerializeJsonKeyword(KeywordVariant const &keyword)
SerializeJsons keyword to JSON.
std::variant< std::string, int64_t, uint64_t, double, bool > ValueType