refs #875, refs #879, class for test data

(will be consolidated with existing utility classes)
This commit is contained in:
Klaus Basan
2017-02-11 03:13:49 +01:00
committed by Mathew Sutcliffe
parent ae5b0310b6
commit ed820da20d
8 changed files with 157 additions and 29 deletions

View File

@@ -0,0 +1,59 @@
/* Copyright (C) 2017
* Swift Project Community / Contributors
*
* This file is part of Swift Project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
//! \file
#ifndef BLACKMISC_TEST_TESTDATA_H
#define BLACKMISC_TEST_TESTDATA_H
#include "blackmisc/blackmiscexport.h"
namespace BlackMisc
{
namespace Aviation
{
class CAtcStation;
class CAtcStationList;
class CCallsign;
}
namespace Geo
{
class CCoordinateGeodetic;
}
namespace Test
{
/*!
* Testdata for unit tests/data
*/
class BLACKMISC_EXPORT CTestData
{
public:
//! Munich tower coordinate
static const BlackMisc::Geo::CCoordinateGeodetic &coordinateMunichTower();
//! Frankfurt tower coordinate
static const BlackMisc::Geo::CCoordinateGeodetic &coordinateFrankfurtTower();
//! Tower stations
static const BlackMisc::Aviation::CAtcStationList &getTowerStations();
//! Get ATC station
static const BlackMisc::Aviation::CAtcStation &getAtcStation();
//! Get a random callsign (ATC)
static const BlackMisc::Aviation::CCallsign &getRandomAtcCallsign();
//! Get a random callsign (aircraft)
static const BlackMisc::Aviation::CCallsign &getRandomAircraftCallsign();
};
} // ns
} // ns
#endif // guard