16 _iataCode (iIataCode), _iataType (iIataType), _geonamesID (iGeonamesID) {
17 if (_geonamesID == 0) {
25 LocationKey::LocationKey() :
27 _geonamesID (0), _isGeonames (false) {
33 _iataCode (iLocationKey._iataCode), _iataType (iLocationKey._iataType),
34 _geonamesID (iLocationKey._geonamesID),
35 _isGeonames (iLocationKey._isGeonames) {
44 const bool areEqual = (_iataCode == iLocationKey._iataCode
45 && _iataType == iLocationKey._iataType
46 && _geonamesID == iLocationKey._geonamesID);
52 std::ostringstream oStr;
54 <<
"-" << _geonamesID;
61 std::ostringstream oStr;
Class modelling the primary key of a location/POR (point of reference).
bool operator==(const LocationKey &) const
void toStream(std::ostream &) const
std::string describe() const
std::string getTypeAsString() const
void fromStream(std::istream &)
Enumeration of output types.
std::string toString() const