Files
pilotclient/src/blackmisc/testing.h
Klaus Basan 87e87013f9 refs #322, performance samples
* menu for samples, no need to comment things out
2014-09-09 20:07:22 +02:00

63 lines
1.9 KiB
C++

/* Copyright (C) 2013
* 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_TESTING_H
#define BLACKMISC_TESTING_H
#include "avallclasses.h"
/*!
* Generate data for testing purposes.
*/
namespace BlackMisc
{
namespace Aviation
{
//! Generate data for testing aviation classes
class CTesting
{
public:
//! Generate number of ATC stations
static CAtcStationList createAtcStations(int number, bool byPropertyIndex = false);
//! Single station, annotated by index
static CAtcStation createStation(int index, bool byPropertyIndex = false);
//! Generate number of ATC stations
static void readStations(const CAtcStationList &stations, bool byPropertyIndex = false);
//! Read properties of a station and concatenate them
static QString readStation(const CAtcStation &station, bool byPropertyIndex = false);
//! Calculate n times distance (greater circle distance)
static void calculateDistance(int n);
//! Copy 10k stations n times
static void copy10kStations(int times);
//! Const 10000 stations
static const CAtcStationList &stations10k()
{
static const CAtcStationList s = createAtcStations(10000, false);
return s;
}
//! parse coordinates from WGS
static void parseWgs(int times);
};
} // Aviation
} // BlackMisc
#endif // guard