mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
/* 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 "samplesmodelmapping.h"
|
|
#include "blackmisc/blackmiscfreefunctions.h"
|
|
#include "blacksim/blacksimfreefunctions.h"
|
|
#include "blacksim/fscommon/vpilotmodelmappings.h"
|
|
|
|
#include <QDebug>
|
|
|
|
using namespace BlackSim::FsCommon;
|
|
|
|
namespace BlackSimTest
|
|
{
|
|
|
|
/*
|
|
* Samples
|
|
*/
|
|
int CSamplesModelMapping::samples()
|
|
{
|
|
BlackMisc::registerMetadata();
|
|
BlackSim::registerMetadata();
|
|
|
|
CVPilotModelMappings cvm;
|
|
cvm.addDirectory(CVPilotModelMappings::standardMappingsDirectory());
|
|
bool s = cvm.load();
|
|
qDebug() << "loaded:" << s << "size:" << cvm.size();
|
|
|
|
BlackMisc::Aviation::CAircraftIcao icao("C172");
|
|
qDebug() << cvm.findByIcaoWildcard(icao);
|
|
|
|
return 0;
|
|
}
|
|
|
|
} // namespace
|