mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
refs #879, test data class
* added and renamed functions * added some DB data
This commit is contained in:
committed by
Mathew Sutcliffe
parent
2f14886db5
commit
4b506f20ab
@@ -16,42 +16,132 @@
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
class CVariantList;
|
||||
class CPropertyIndexVariantMap;
|
||||
|
||||
namespace Aviation
|
||||
{
|
||||
class CAtcStation;
|
||||
class CAtcStationList;
|
||||
class CCallsign;
|
||||
class CCallsignSet;
|
||||
class CAircraftSituation;
|
||||
class CAircraftIcaoCode;
|
||||
class CAirlineIcaoCode;
|
||||
class CLivery;
|
||||
class CFlightPlan;
|
||||
}
|
||||
namespace Geo
|
||||
namespace Geo { class CCoordinateGeodetic; }
|
||||
namespace Network
|
||||
{
|
||||
class CCoordinateGeodetic;
|
||||
class CUser;
|
||||
class CUserList;
|
||||
class CServer;
|
||||
}
|
||||
namespace Simulation
|
||||
{
|
||||
class CAircraftModel;
|
||||
class CSimulatedAircraft;
|
||||
}
|
||||
|
||||
namespace Test
|
||||
{
|
||||
/*!
|
||||
* Testdata for unit tests/data
|
||||
* \remark only use forward declared types in CTestData
|
||||
*/
|
||||
class BLACKMISC_EXPORT CTestData
|
||||
{
|
||||
public:
|
||||
//! Traffic server
|
||||
static const BlackMisc::Network::CServer &getTrafficServer();
|
||||
|
||||
//! Get a variant list with various data
|
||||
static const BlackMisc::CVariantList &getCVariantList();
|
||||
|
||||
//! Get a variant map
|
||||
static const BlackMisc::CPropertyIndexVariantMap &getCPropertyIndexVariantMap();
|
||||
|
||||
//! Munich tower coordinate
|
||||
static const BlackMisc::Geo::CCoordinateGeodetic &coordinateMunichTower();
|
||||
static const BlackMisc::Geo::CCoordinateGeodetic &getCoordinateMunichTower();
|
||||
|
||||
//! Frankfurt tower coordinate
|
||||
static const BlackMisc::Geo::CCoordinateGeodetic &coordinateFrankfurtTower();
|
||||
static const BlackMisc::Geo::CCoordinateGeodetic &getCoordinateFrankfurtTower();
|
||||
|
||||
//! Munich tower
|
||||
static const BlackMisc::Aviation::CAtcStation &getMunichTower();
|
||||
|
||||
//! Munich approach
|
||||
static const BlackMisc::Aviation::CAtcStation &getMunichApproach();
|
||||
|
||||
//! Frankfurt tower
|
||||
static const BlackMisc::Aviation::CAtcStation &getFrankfurtTower();
|
||||
|
||||
//! Tower stations
|
||||
static const BlackMisc::Aviation::CAtcStationList &getTowerStations();
|
||||
static const BlackMisc::Aviation::CAtcStationList &getAtcStations();
|
||||
|
||||
//! Get ATC station
|
||||
static const BlackMisc::Aviation::CAtcStation &getAtcStation();
|
||||
static const BlackMisc::Aviation::CAtcStation &getRandomAtcStation();
|
||||
|
||||
//! Get a random callsign (ATC)
|
||||
static const BlackMisc::Aviation::CCallsign &getRandomAtcCallsign();
|
||||
//! Get aircraft callsigns
|
||||
static const BlackMisc::Aviation::CCallsignSet &getPilotCallsigns();
|
||||
|
||||
//! Get a random callsign (aircraft)
|
||||
static const BlackMisc::Aviation::CCallsign &getRandomAircraftCallsign();
|
||||
static const BlackMisc::Aviation::CCallsign &getRandomPilotCallsign();
|
||||
|
||||
//! Get controller callsigns
|
||||
static const BlackMisc::Aviation::CCallsignSet &getControllerCallsigns();
|
||||
|
||||
//! Get a random callsign (ATC)
|
||||
static const BlackMisc::Aviation::CCallsign &getRandomControllerCallsign();
|
||||
|
||||
//! Get a random pilot
|
||||
static const BlackMisc::Network::CUserList &getPilots();
|
||||
|
||||
//! Get a random pilot user
|
||||
static const BlackMisc::Network::CUser &getRandomPilot();
|
||||
|
||||
//! Get a random controller
|
||||
static const BlackMisc::Network::CUserList &getControllers();
|
||||
|
||||
//! Get a random controller user
|
||||
static const BlackMisc::Network::CUser &getRandomController();
|
||||
|
||||
//! Aircraft situation (Munich)
|
||||
static const BlackMisc::Aviation::CAircraftSituation &getAircraftSituationAboveMunichTower();
|
||||
|
||||
//! Aircraft situation (Frankfurt)
|
||||
static const BlackMisc::Aviation::CAircraftSituation &getAircraftSituationAboveFrankfurtTower();
|
||||
|
||||
//! B737 ICAO code (as from DB)
|
||||
static const BlackMisc::Aviation::CAircraftIcaoCode &getDBAircraftIcaoB737();
|
||||
|
||||
//! C172 ICAO code (as from DB)
|
||||
static const BlackMisc::Aviation::CAircraftIcaoCode &getDBAircraftIcaoC172();
|
||||
|
||||
//! DLH ICAO code (as from DB)
|
||||
static const BlackMisc::Aviation::CAirlineIcaoCode &getDbAirlineIcaoDLH();
|
||||
|
||||
//! BAW ICAO code (as from DB)
|
||||
static const BlackMisc::Aviation::CAirlineIcaoCode &getDbAirlineIcaoBAW();
|
||||
|
||||
//! Aircraft model
|
||||
static const BlackMisc::Aviation::CLivery &getDbLiveryDLH();
|
||||
|
||||
//! FSX aircraft model, a C172 Skyhawk
|
||||
static const BlackMisc::Simulation::CAircraftModel &getDbAircraftModelFsxA2AC172Skyhawk();
|
||||
|
||||
//! FSX aircraft model, an Airbus A320
|
||||
static const BlackMisc::Simulation::CAircraftModel &getDbAircraftModelFsxAerosoftA320();
|
||||
|
||||
//! C172 simulated aircraft, a C172
|
||||
static const BlackMisc::Simulation::CSimulatedAircraft &getC172Aircraft();
|
||||
|
||||
//! A320 simulated aircraft, a A
|
||||
static const BlackMisc::Simulation::CSimulatedAircraft &getA320Aircraft();
|
||||
|
||||
//! Prefilled flightplan from EDDM-EDDF
|
||||
static const BlackMisc::Aviation::CFlightPlan &getFlightPlan();
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user