mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
Moved PQs from blackcore to blackmisc, added header for namespace, mainpage.dox for Doxygen
This commit is contained in:
@@ -1,18 +1,20 @@
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
#include "blackcore/pqdistance.h"
|
||||
#include "blackcore/pqfrequency.h"
|
||||
#include "blackcore/pqspeed.h"
|
||||
#include "blackcore/pqangle.h"
|
||||
#include "blackcore/pqmass.h"
|
||||
#include "blackcore/pqpressure.h"
|
||||
#include "blackmisc/pqconstants.h"
|
||||
#include "blackmisc/debug.h"
|
||||
|
||||
using namespace BlackCore;
|
||||
using namespace BlackMisc;
|
||||
|
||||
/*!
|
||||
* Sample tests
|
||||
* \brief main
|
||||
* \param argc
|
||||
* \param argv
|
||||
* \return
|
||||
*/
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QCoreApplication a(argc, argv);
|
||||
|
||||
const CDistance d1(5.0, CDistanceUnit::ft()); // 5 ft
|
||||
CDistance d2(1, CDistanceUnit::NM()); // 1NM
|
||||
CDistance d3(1, CDistanceUnit::km());
|
||||
@@ -50,6 +52,14 @@ int main(int argc, char *argv[])
|
||||
CPressure p1(1013.25, CPressureUnit::hPa());
|
||||
qDebug() << p1 << p1.valueRoundedWithUnit(CPressureUnit::psi()) << p1.valueRoundedWithUnit(CPressureUnit::inHg());
|
||||
|
||||
CTemperature t1;
|
||||
CTemperature t2(20, CTemperatureUnit::C());
|
||||
qDebug() << t1 << t2;
|
||||
|
||||
// some logging wit CLogMessage
|
||||
bDebug << p1;
|
||||
bDebug << p1.getUnit() << p1.getUnit().getMultiplier();
|
||||
|
||||
// bye
|
||||
return a.exec();
|
||||
}
|
||||
|
||||
@@ -7,18 +7,18 @@ TEMPLATE = app
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
DEPENDPATH += . ../../src/blackcore
|
||||
DEPENDPATH += . ../../src
|
||||
INCLUDEPATH += . ../../src
|
||||
SOURCES += main.cpp
|
||||
|
||||
win32-msvc* {
|
||||
PRE_TARGETDEPS += ../../lib/blackcore.lib
|
||||
LIBS += ../../lib/blackcore.lib
|
||||
PRE_TARGETDEPS += ../../lib/blackmisc.lib
|
||||
LIBS += ../../lib/blackmisc.lib
|
||||
}
|
||||
|
||||
!win32-msvc* {
|
||||
PRE_TARGETDEPS += ../../lib/libblackcore.a
|
||||
LIBS += ../../lib/libblackcore.a
|
||||
PRE_TARGETDEPS += ../../lib/libblackmisc.a
|
||||
LIBS += ../../lib/libblackmisc.a
|
||||
}
|
||||
|
||||
DESTDIR = ../../bin
|
||||
|
||||
Reference in New Issue
Block a user