1 #ifndef _Earth_h_ 2 #define _Earth_h_ 3 4 #include "Planet.h" 5 #include <vector> 6 #include <string> 7 8 // this line separates the two insertion points, so as to distinguish them! 9 10 class Earth : public Planet { 11 private: 12 std::vector<std::string> _tsCountryNames; 13 14 public: 15 Earth(); 16 ~Earth(); 17 18 // accessors: getCountryNames()19 inline std::vector<std::string> getCountryNames() const { return _tsCountryNames; } setCountryNames(std::vector<std::string> tsCountryNames)20 inline void setCountryNames(std::vector<std::string> tsCountryNames) { _tsCountryNames = tsCountryNames; } 21 22 // methods: 23 24 private: 25 Earth(const Earth&); 26 Earth& operator =(const Earth&); 27 }; 28 29 #endif 30