Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
country.h
Go to the documentation of this file.
1#pragma once
2#include <string>
3
4namespace hgps::core {
5
7struct Country {
9 int code{};
10
12 std::string name{};
13
15 std::string alpha2{};
16
18 std::string alpha3{};
19};
20
25inline bool operator>(const Country &lhs, const Country &rhs) { return lhs.name > rhs.name; }
26
31inline bool operator<(const Country &lhs, const Country &rhs) { return lhs.name < rhs.name; }
32} // namespace hgps::core
Top-level namespace for Health-GPS Core C++ API.
Definition analysis.h:7
bool operator>(const Country &lhs, const Country &rhs)
Greater-than operation for country data type.
Definition country.h:25
bool operator<(const Country &lhs, const Country &rhs)
Less-than operation for country data type.
Definition country.h:31
Country ISO-3166 definition data structure.
Definition country.h:7
std::string name
Full country name, e.g. France.
Definition country.h:12
std::string alpha2
The alpha 2 characters unique identifier, e.g., FR.
Definition country.h:15
int code
Unique code identifier, e.g. 250.
Definition country.h:9
std::string alpha3
The alpha 3 characters unique identifier, e.g., FRA.
Definition country.h:18