refs #361, own reader to fix unbalanced " issue

* some functions renamed
* move some code from .h to .cpp
* adjusted samples
This commit is contained in:
Klaus Basan
2015-04-01 14:41:40 +02:00
parent 985a1caecf
commit 313c5f5638
6 changed files with 26 additions and 7 deletions

View File

@@ -30,7 +30,7 @@ int main(int argc, char *argv[])
BlackMisc::registerMetadata();
streamOut << "Run samples:" << endl;
streamOut << "1 .. FS common / Simulation" << endl;
streamOut << "1 .. FS common / Simulation (with cfg files reading)" << endl;
streamOut << "2 .. FSX" << endl;
streamOut << "3 .. Mappings" << endl;
streamOut << "x .. exit" << endl;

View File

@@ -37,7 +37,7 @@ namespace BlackSimTest
return 0;
}
streamOut << "start reading" << endl;
streamOut << "start reading, press RETURN" << endl;
QString input = streamIn.readLine();
Q_UNUSED(input);

View File

@@ -35,7 +35,7 @@ namespace BlackSimTest
std::unique_ptr<ISimulatorModelMappings> cvm(new CVPilotModelMappings(true));
bool s = cvm->read();
streamOut << "directory: " << CVPilotModelMappings::standardMappingsDirectory() << endl;
streamOut << "loaded: " << (s ? "yes" : "no") << " size: " << cvm->size() << endl;
streamOut << "loaded: " << BlackMisc::boolToYesNo(s) << " size: " << cvm->size() << endl;
// mapper with rule set, handing over ownership
CAircraftMapper mapper(std::move(cvm));