summaryrefslogtreecommitdiffstats
path: root/parameter/InstanceConfigurableElement.h
diff options
context:
space:
mode:
authorDavid Wagner <david.wagner@intel.com>2014-03-05 10:55:15 +0100
committerMattijs Korpershoek <mattijsx.korpershoek@intel.com>2014-06-24 11:51:18 +0200
commit01c7495e66caea59165316bc025a69cce1383311 (patch)
treef7a7b1732f69dfd118f4dc0dc0021eb2b0d13bff /parameter/InstanceConfigurableElement.h
parentc4dd2ae2f070333da2917a93e30b3557caa38760 (diff)
downloadexternal_parameter-framework-01c7495e66caea59165316bc025a69cce1383311.zip
external_parameter-framework-01c7495e66caea59165316bc025a69cce1383311.tar.gz
external_parameter-framework-01c7495e66caea59165316bc025a69cce1383311.tar.bz2
Support context mapping at Subsystem level
BZ: 176942 Add a class (ConfigurableMappingElement) handling the mapping; to be derived by all classes that can contain mapping. ConfigurableMappingElement derives from ConfigurableElement. Until now, the only child of ConfigurableElement that could have mapping was InstanceConfigurableElement (through TypeElement, that contains all information related to its type). Now, both InstanceConfigurableElement and Subsystem derive from ConfigurableMappingElement. That way, Subsystem XML elements can now have a "Mapping" attribute, propagated to all Elements in the tree. The Subsystem.xsd schema is updated in that regard. Only context mapping is relevant at the Subsystem-level (as opposed to instantiation mapping). If an instantiation mapping is set in the Subsystem, it is silently ignored. Change-Id: I3c09959bc5e3d18c5a4d354e498d69cc5489a247 Signed-off-by: David Wagner <david.wagner@intel.com> Signed-off-by: Mattijs Korpershoek <mattijsx.korpershoek@intel.com>
Diffstat (limited to 'parameter/InstanceConfigurableElement.h')
-rw-r--r--parameter/InstanceConfigurableElement.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/parameter/InstanceConfigurableElement.h b/parameter/InstanceConfigurableElement.h
index 7d9298e..78b348c 100644
--- a/parameter/InstanceConfigurableElement.h
+++ b/parameter/InstanceConfigurableElement.h
@@ -29,14 +29,14 @@
*/
#pragma once
-#include "ConfigurableElement.h"
+#include "ConfigurableElementWithMapping.h"
#include "TypeElement.h"
class IMapper;
class CParameterBlackboard;
class CParameterAccessContext;
-class CInstanceConfigurableElement : public CConfigurableElement
+class CInstanceConfigurableElement : public CConfigurableElementWithMapping
{
public:
enum Type {
@@ -53,7 +53,7 @@ public:
// Instantiated type
const CTypeElement* getTypeElement() const;
- bool getMappingData(const string& strKey, const string*& pStrValue) const;
+ virtual bool getMappingData(const string& strKey, const string*& pStrValue) const;
/**
* Returns the mapping data associated to the type element of the current