Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
jsonparser.h File Reference

Helper functions used by the JSON library to (de)serialise data structures. More...

#include "poco.h"
#include "riskmodel.h"
#include <nlohmann/json.hpp>
#include <optional>
Include dependency graph for jsonparser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  hgps
 Top-level namespace for Health-GPS Console host application.
 
namespace  hgps::input
 Data structures containing model parameters and configuration options.
 
namespace  hgps::core
 Top-level namespace for Health-GPS Core C++ API.
 
namespace  std
 Global namespace.
 

Typedefs

using hgps::core::json = nlohmann::json
 

Functions

void hgps::input::to_json (json &j, const CoefficientInfo &p)
 
void hgps::input::from_json (const json &j, CoefficientInfo &p)
 
void hgps::input::to_json (json &j, const LinearModelInfo &p)
 
void hgps::input::from_json (const json &j, LinearModelInfo &p)
 
void hgps::input::to_json (json &j, const Array2Info &p)
 
void hgps::input::from_json (const json &j, Array2Info &p)
 
void hgps::input::to_json (json &j, const HierarchicalLevelInfo &p)
 
void hgps::input::from_json (const json &j, HierarchicalLevelInfo &p)
 
void hgps::input::to_json (json &j, const FileInfo &p)
 
void hgps::input::to_json (json &j, const SettingsInfo &p)
 
void hgps::input::from_json (const json &j, SettingsInfo &p)
 
void hgps::input::to_json (json &j, const SESInfo &p)
 
void hgps::input::from_json (const json &j, SESInfo &p)
 
void hgps::input::to_json (json &j, const IncomeStratumFactorsMeanStratumEntry &p)
 
void hgps::input::to_json (json &j, const IncomeStratumFactorsMeanConfig &p)
 
void hgps::input::to_json (json &j, const BaselineInfo &p)
 
void hgps::input::to_json (json &j, const RiskFactorInfo &p)
 
void hgps::input::from_json (const json &j, RiskFactorInfo &p)
 
void hgps::input::to_json (json &j, const VariableInfo &p)
 
void hgps::input::from_json (const json &j, VariableInfo &p)
 
void hgps::input::to_json (json &j, const FactorDynamicEquationInfo &p)
 
void hgps::input::from_json (const json &j, FactorDynamicEquationInfo &p)
 
void hgps::input::to_json (json &j, const PolicyPeriodInfo &p)
 
void hgps::input::from_json (const json &j, PolicyPeriodInfo &p)
 
void hgps::input::to_json (json &j, const PolicyImpactInfo &p)
 
void hgps::input::from_json (const json &j, PolicyImpactInfo &p)
 
void hgps::input::to_json (json &j, const PolicyAdjustmentInfo &p)
 
void hgps::input::from_json (const json &j, PolicyAdjustmentInfo &p)
 
void hgps::input::to_json (json &j, const PolicyScenarioInfo &p)
 
void hgps::input::from_json (const json &j, PolicyScenarioInfo &p)
 
void hgps::input::to_json (json &j, const IndividualIdTrackingConfig &p)
 
void hgps::input::from_json (const json &j, IndividualIdTrackingConfig &p)
 
void hgps::input::to_json (json &j, const OutputInfo &p)
 
void hgps::input::from_json (const json &j, OutputInfo &p)
 
template<class T >
void hgps::core::to_json (json &j, const Interval< T > &interval)
 
template<class T >
void hgps::core::from_json (const json &j, Interval< T > &interval)
 
template<typename T >
void std::to_json (nlohmann::json &j, const std::optional< T > &p)
 
template<typename T >
void std::from_json (const nlohmann::json &j, std::optional< T > &p)
 

Detailed Description

Helper functions used by the JSON library to (de)serialise data structures.

Configuration file serialisation / de-serialisation mapping specific to the JSON for Modern C++ library adopted by the project.

See also
https://github.com/nlohmann/json#arbitrary-types-conversions for details about the contents and code structure in this file.