Health-GPS
3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
schema.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <nlohmann/json.hpp>
4
5
#include <filesystem>
6
#include <string>
7
8
namespace
hgps::input
{
13
void
validate_json
(std::istream &is,
const
std::string &schema_file_name,
int
schema_version);
14
21
nlohmann::json
load_and_validate_json
(
const
std::filesystem::path &file_path,
22
const
std::string &schema_file_name,
int
schema_version,
23
bool
require_schema_property =
true
);
24
}
// namespace hgps::input
hgps::input
Data structures containing model parameters and configuration options.
Definition
configuration.cpp:75
hgps::input::load_and_validate_json
nlohmann::json load_and_validate_json(const std::filesystem::path &file_path, const std::string &schema_file_name, int schema_version, bool require_schema_property)
Load a JSON file and validate against the specified schema.
Definition
schema.cpp:57
hgps::input::validate_json
void validate_json(std::istream &is, const std::string &schema_file_name, int schema_version)
Validate a JSON stream against the specified schema.
Definition
schema.cpp:38
HealthGPS.Input
schema.h
Generated by
1.9.8