refs #409 Rename ISimulatorModelMappings to IModelMappingsProvider

The reason is that the previous name sounded more like a value
object. But instead it does read the mappings from somwhere.
This commit is contained in:
Roland Winklmeier
2015-05-02 00:40:10 +02:00
parent 6275e06b4f
commit 9e274badf1
7 changed files with 31 additions and 31 deletions

View File

@@ -9,7 +9,7 @@
#include "simulator_fscommon.h"
#include "blackmisc/logmessage.h"
#include "blackmisc/simulation/fscommon/vpilotmodelmappings.h"
#include "blackmisc/simulation/fscommon/modelmappingsprovidervpilot.h"
#include "blackmisc/simulation/fscommon/fscommonutil.h"
using namespace BlackMisc::PhysicalQuantities;
@@ -112,12 +112,12 @@ namespace BlackSimPlugin
CAircraftMapper *CSimulatorFsCommon::mapperInstance()
{
static CVPilotModelMappings *mappings = new CVPilotModelMappings(true);
static CModelMappingsProviderVPilot *mappings = new CModelMappingsProviderVPilot(true);
// tries to access simObjectsDir, if this is an mapped remote directory
// init might hang for a while
static CAircraftMapper *mapper = new CAircraftMapper(
std::unique_ptr<CVPilotModelMappings>(mappings), // currently hard wired
std::unique_ptr<CModelMappingsProviderVPilot>(mappings), // currently hard wired
simObjectsDir()
);
return mapper;