Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
model_parser.h File Reference
Include dependency graph for model_parser.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.
 

Functions

std::unique_ptr< hgps::RiskFactorSexAgeTablehgps::input::load_risk_factor_expected (const Configuration &config)
 Loads risk factor expected values from a file.
 
std::unique_ptr< hgps::DummyModelDefinitionhgps::input::load_dummy_risk_model_definition (hgps::RiskFactorModelType type, const nlohmann::json &opt)
 Loads either a static or dynamic dummy risk factor model from a JSON file.
 
std::unique_ptr< hgps::StaticHierarchicalLinearModelDefinitionhgps::input::load_hlm_risk_model_definition (const nlohmann::json &opt)
 Loads the full hierarchical linear regression model definition from a JSON file.
 
std::unique_ptr< hgps::StaticLinearModelDefinitionhgps::input::load_staticlinear_risk_model_definition (const nlohmann::json &opt, const Configuration &config)
 Loads the static linear regression model definition from a JSON file.
 
std::unique_ptr< hgps::DynamicHierarchicalLinearModelDefinitionhgps::input::load_ebhlm_risk_model_definition (const nlohmann::json &opt, const Configuration &config)
 Loads the old energy balance model definition from a JSON file.
 
std::unique_ptr< hgps::KevinHallModelDefinitionhgps::input::load_kevinhall_risk_model_definition (const nlohmann::json &opt, const Configuration &config)
 Loads the Kevin Hall energy balance model definition from a JSON file.
 
std::unique_ptr< hgps::RiskFactorModelDefinitionhgps::input::load_risk_model_definition (hgps::RiskFactorModelType model_type, const std::filesystem::path &model_path, const Configuration &config)
 Loads a risk model definition from a JSON file.
 
nlohmann::json hgps::input::load_json (const std::filesystem::path &filepath)
 Load and parse a JSON model file.
 
void hgps::input::register_risk_factor_model_definitions (hgps::CachedRepository &repository, const Configuration &config)
 Registers a risk factor model definition with the repository.