Updraft
1.0
Open source glider flight visualisation tool.
|
00001 #ifndef UPDRAFT_SRC_LIBRARIES_OPENAIRSPACE_OPENAIRSPACE_H_ 00002 #define UPDRAFT_SRC_LIBRARIES_OPENAIRSPACE_OPENAIRSPACE_H_ 00003 00004 #include "airspace.h" 00005 00006 namespace OpenAirspace { 00007 00009 class OPENAIRSPACE_EXPORT Parser { 00010 public: 00014 explicit Parser(const QString& fileName); 00015 00017 inline Airspace* at(const int i) { 00018 return this->allAirspaces->at(i);} 00019 00021 inline const QString* const GetName(int i) const { 00022 return this->allAirspaces->at(i)->GetName();} 00023 00025 inline size_t size() { 00026 return (allAirspaces) ? 00027 this->allAirspaces->size() : 0;} 00028 00030 inline const Airspace::ACType& GetClass(int i) { 00031 return this->allAirspaces->at(i)->GetClass();} 00032 00034 inline const QString* const GetFloor(int i) const { 00035 return this->allAirspaces->at(i)->GetFloor(); } 00036 00038 inline const QString* const GetCeiling(int i) const { 00039 return this->allAirspaces->at(i)->GetCeiling(); } 00040 00042 inline const 00043 QVector<OpenAirspace::Position*>& GetTagCoor(int i) { 00044 return this->allAirspaces->at(i)->GetTagCoor(); } 00045 00047 ~Parser(void); 00048 00049 private: 00051 QVector<Airspace*>* allAirspaces; 00052 }; // Parser 00053 } // OpenAirspace 00054 #endif // UPDRAFT_SRC_LIBRARIES_OPENAIRSPACE_OPENAIRSPACE_H_