refs #445, samples for vPilot rules

* new samples for vPilot rules
* also adjusted other samples to latest changes (livery, new readers)
This commit is contained in:
Klaus Basan
2015-07-10 01:08:13 +02:00
committed by Mathew Sutcliffe
parent c760f1d424
commit 3c9f95356e
12 changed files with 87 additions and 34 deletions

View File

@@ -11,6 +11,7 @@
#include "samplesfscommon.h"
#include "samplesfsx.h"
#include "samplesmodelmapping.h"
#include "samplesvpilotrules.h"
#include <QCoreApplication>
#include <QTextStream>
@@ -33,6 +34,7 @@ int main(int argc, char *argv[])
streamOut << "1 .. FS common / Simulation (with cfg files reading)" << endl;
streamOut << "2 .. FSX" << endl;
streamOut << "3 .. Mappings" << endl;
streamOut << "4 .. vPilot rules" << endl;
streamOut << "x .. exit" << endl;
QString i = streamIn.readLine().toLower().trimmed();
@@ -50,14 +52,18 @@ int main(int argc, char *argv[])
{
BlackSimTest::CSamplesModelMapping::samples(streamOut, streamIn);
}
else if (i.startsWith("4"))
{
BlackSimTest::CSamplesVPilotRules::samples(streamOut, streamIn);
}
else if (i.startsWith("x"))
{
return 0;
streamOut << "terminating" << endl;
}
streamOut << endl;
streamOut << "time elapsed: " << t.elapsed() << "ms" << endl;
streamOut << "press key to exit" << endl;
streamIn.readLine();
return 0;
return EXIT_SUCCESS;
}