diff options
Diffstat (limited to 'parameter/ParameterMgrPlatformConnector.cpp')
-rw-r--r-- | parameter/ParameterMgrPlatformConnector.cpp | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/parameter/ParameterMgrPlatformConnector.cpp b/parameter/ParameterMgrPlatformConnector.cpp index 0ef9053..d8b3936 100644 --- a/parameter/ParameterMgrPlatformConnector.cpp +++ b/parameter/ParameterMgrPlatformConnector.cpp @@ -28,8 +28,9 @@ #include <assert.h> // Construction -CParameterMgrPlatformConnector::CParameterMgrPlatformConnector(const string& strConfigurationFilePath) - : _pParameterMgr(new CParameterMgr(strConfigurationFilePath)), _bStarted(false), _pLogger(NULL) +CParameterMgrPlatformConnector::CParameterMgrPlatformConnector( + const string& strConfigurationFilePath) : + _pParameterMgr(new CParameterMgr(strConfigurationFilePath)), _bStarted(false), _pLogger(NULL) { // Logging _pParameterMgrLogger = new CParameterMgrLogger(this); @@ -58,7 +59,7 @@ ISelectionCriterionInterface* CParameterMgrPlatformConnector::createSelectionCri } // Selection criterion retrieval -ISelectionCriterionInterface* CParameterMgrPlatformConnector::getSelectionCriterion(const string& strName) +ISelectionCriterionInterface* CParameterMgrPlatformConnector::getSelectionCriterion(const string& strName) const { return _pParameterMgr->getSelectionCriterion(strName); } @@ -85,6 +86,23 @@ void CParameterMgrPlatformConnector::setLogger(CParameterMgrPlatformConnector::I _pLogger = pLogger; } +bool CParameterMgrPlatformConnector::setFailureOnMissingSubsystem(bool bFail, string &strError) +{ + if (_bStarted) { + + strError = "Can not set missing subsystem policy while running"; + return false; + } + + _pParameterMgr->setFailureOnMissingSubsystem(bFail); + return true; +} + +bool CParameterMgrPlatformConnector::getFailureOnMissingSubsystem() +{ + return _pParameterMgr->getFailureOnMissingSubsystem(); +} + // Start bool CParameterMgrPlatformConnector::start(string& strError) { |