Health-GPS  1.2.2.0
Global Health Policy Simulation model (Health-GPS)
country.h
Go to the documentation of this file.
1 #pragma once
2 #include <string>
3 
4 namespace hgps::core {
5 
7 struct Country {
9  int code{};
10 
12  std::string name{};
13 
15  std::string alpha2{};
16 
18  std::string alpha3{};
19 };
20 
25 inline bool operator>(const Country &lhs, const Country &rhs) { return lhs.name > rhs.name; }
26 
31 inline 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