33using namespace swift::misc::aviation;
34using namespace swift::misc::physical_quantities;
35using namespace swift::misc::geo;
36using namespace swift::misc::network;
39namespace swift::sample
47 out << h1 <<
" " << h2 <<
" " << (h1 == h2) <<
" " << (h1 != h2) <<
" " << (h1 == h1) <<
Qt::endl;
62 out << tr1 <<
" " << tr2 <<
Qt::endl;
67 out << callsign1 <<
" " << callsign2 <<
" " << (callsign1 == callsign2) <<
Qt::endl;
74 out << station1 <<
" " << station2 <<
" " << (station1.getCallsign() == station2.
getCallsign()) <<
Qt::endl;
77 CUser user(
"12345",
"Joe KING KGLC");
87 out <<
"-----------------------------------------------" <<
Qt::endl;
94 out << alt <<
" " << altMsl <<
Qt::endl;
97 out <<
"-----------------------------------------------" <<
Qt::endl;
static CAngleUnit deg()
Degrees.
static CFrequencyUnit MHz()
Megahertz.
CSequence sortedBy(K1 key1, Keys... keys) const
Return a copy sorted by some particular key(s).
CSequence findBy(Predicate p) const
Return a copy containing only those elements for which a given predicate returns true.
void push_back(const T &value)
Appends an element at the end of the sequence.
Value object encapsulating information of airport ICAO data.
Altitude as used in aviation, can be AGL or MSL altitude.
bool toMeanSeaLevel()
Flightlevel to MSL.
Value object encapsulating information about an ATC station.
void setController(const network::CUser &controller)
Set controller.
const physical_quantities::CFrequency & getFrequency() const
Get frequency.
const CCallsign & getCallsign() const
Get callsign.
QString getControllerRealName() const
Get controller name.
Value object for a list of ATC stations.
Value object encapsulating information of a callsign.
COM system (aka "radio").
static CComSystem getCom1System(double activeFrequencyMHz, double standbyFrequencyMHz=-1)
COM1 unit.
Heading as used in aviation, can be true or magnetic heading.
NAV system (radio navigation).
static CNavSystem getNav1System(double activeFrequencyMHz, double standbyFrequencyMHz=-1)
NAV1 unit.
@ StateStandby
not a real mode, more a state
Value object encapsulating information of a user.
const QString & getRealName() const
Get full name.
const aviation::CAirportIcaoCode & getHomeBase() const
Homebase.
static const swift::misc::aviation::CAtcStation & getFrankfurtTower()
Frankfurt tower.
static const swift::misc::aviation::CAtcStationList & getAtcStations()
Tower stations.
static const swift::misc::network::CUser & getRandomController()
Get a random controller user.
static int samples(QTextStream &out)
Run the samples.
Generate data for testing purposes.
Free functions in swift::misc.
QTextStream & endl(QTextStream &stream)