Keine Beschreibung

country.h 518B

1234567891011121314151617181920212223242526
  1. #ifndef COUNTRY_H
  2. #define COUNTRY_H
  3. #include <doublepoint.h>
  4. #include <city.h>
  5. #include <QMap>
  6. ///
  7. /// \brief The Country class
  8. /// A map of (city name, city structure)
  9. ///
  10. class Country {
  11. public:
  12. QMap<QString,City*> Cities;
  13. double minX, minY, maxX, maxY;
  14. Country() {}
  15. bool readInfoFromJSON(QString fileName);
  16. void topLeft(QString &st, DoublePoint &p );
  17. void limits();
  18. QMap<QString,City*> getCities() { return Cities;}
  19. //~Country() { delete Cities; }
  20. };
  21. #endif // COUNTRY_H