#refs 185 , added samples for blacksim classes

This commit is contained in:
Klaus Basan
2014-03-14 02:02:59 +01:00
parent ed60616409
commit 2daad2d734
3 changed files with 55 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
#include "blacksim/blacksimfreefunctions.h"
#include "samplesfscommon.h"
#include "samplesfsx.h"
#include <QCoreApplication>
/*!
@@ -13,7 +14,8 @@
int main(int argc, char *argv[])
{
BlackSim::registerMetadata();
BlackSimTest::CSamplesFsCommon::samples();
// BlackSimTest::CSamplesFsCommon::samples();
BlackSimTest::CSamplesFsx::samples();
QCoreApplication a(argc, argv);
return a.exec();
}

View File

@@ -0,0 +1,28 @@
/* Copyright (C) 2013 VATSIM Community / contributors
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "samplesfsx.h"
#include "blacksim/blacksimfreefunctions.h"
#include "blacksim/fsx/simconnectutilities.h"
#include <QDebug>
using namespace BlackSim::Fsx;
namespace BlackSimTest
{
/*
* Samples
*/
int CSamplesFsx::samples()
{
BlackSim::registerMetadata();
qDebug() << CSimConnectUtilities::simConnectExceptionToString(CSimConnectUtilities::SIMCONNECT_EXCEPTION_ALREADY_SUBSCRIBED);
qDebug() << CSimConnectUtilities::simConnectExceptionToString(CSimConnectUtilities::SIMCONNECT_EXCEPTION_ILLEGAL_OPERATION);
qDebug() << CSimConnectUtilities::simConnectSurfaceTypeToString(CSimConnectUtilities::Bituminus);
return 0;
}
} // namespace

View File

@@ -0,0 +1,24 @@
/* Copyright (C) 2013 VATSIM Community / contributors
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef BLACKSIMTEST_SAMPLESFSX_H
#define BLACKSIMTEST_SAMPLESFSX_H
namespace BlackSimTest
{
/*!
* \brief Samples for FSX classes
*/
class CSamplesFsx
{
public:
/*!
* \brief Run the samples
*/
static int samples();
};
} // namespace
#endif