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

@@ -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));