Bachelor Project - Relation Extraction
Extracing location based relations out of geonames data
 All Classes
Country.h
1 // Copyright 2012, University of Freiburg
2 // Anton Stepan <stepana@informatik.uni-freiburg.de>
3 // Marius Bethge <marius.bethge@gmail.com>
4 
5 
6 #ifndef TRUNK_GEONAMES_GEOREADER_V2_COUNTRY_H_
7 #define TRUNK_GEONAMES_GEOREADER_V2_COUNTRY_H_
8 
9 #include <string>
10 #include "./FeatureType.h"
11 
12 
13 using std::string;
14 
15 class Country {
16  public:
17  string name;
18  int population = 0;
19  string continent;
20  int area;
21  int geonamesId;
22  // Country** neighbours;
23  string getFullName() { return name; }
24 
25  // Order priority: names(ascending -> a...z).
26  bool operator< (const Country& rhs) const {
27  return name < rhs.name;
28  };
29 
30  // Two Countries are the same, if they have the same name.
31  bool operator== (const Country& rhs) const {
32  return name == rhs.name;
33  };
34 };
35 
36 #endif // TRUNK_GEONAMES_GEOREADER_V2_COUNTRY_H_