diff options
author | Frederic Boisnard <fredericx.boisnard@intel.com> | 2013-05-23 18:48:58 +0200 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-02-12 17:04:04 +0100 |
commit | 6cae0ecf49ec7815aa59a4f4a0ec99976ca38032 (patch) | |
tree | 36cc121db7d4ff68c665fb153f5b0dc7da62d679 /parameter/ConfigurableElement.h | |
parent | 390b36d8129d3ece769c8542d9d3d3895ab13fbb (diff) | |
download | external_parameter-framework-6cae0ecf49ec7815aa59a4f4a0ec99976ca38032.zip external_parameter-framework-6cae0ecf49ec7815aa59a4f4a0ec99976ca38032.tar.gz external_parameter-framework-6cae0ecf49ec7815aa59a4f4a0ec99976ca38032.tar.bz2 |
Add showMapping command to the PFW
BZ: 99822
Developers often need to get the mapping corresponding to a specific
parameter. However, the PFW doesn't provide a command to achieve this
goal.
This patch aims to add the showMapping command to the PFW.
Change-Id: I05af64a408abe4ceb7f5d177a0ff5fa0461034d0
Signed-off-by: Frédéric Boisnard <fredericx.boisnard@intel.com>
Reviewed-on: http://android.intel.com:8080/105145
Reviewed-by: Benavoli, Patrick <patrick.benavoli@intel.com>
Reviewed-by: Denneulin, Guillaume <guillaume.denneulin@intel.com>
Reviewed-by: Gonzalve, Sebastien <sebastien.gonzalve@intel.com>
Tested-by: Barthes, FabienX <fabienx.barthes@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'parameter/ConfigurableElement.h')
-rw-r--r-- | parameter/ConfigurableElement.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/parameter/ConfigurableElement.h b/parameter/ConfigurableElement.h index 69816f6..796715a 100644 --- a/parameter/ConfigurableElement.h +++ b/parameter/ConfigurableElement.h @@ -91,6 +91,23 @@ public: // Parameter access virtual bool accessValue(CPathNavigator& pathNavigator, string& strValue, bool bSet, CParameterAccessContext& parameterAccessContext) const; + + /** + * Get the list of all the ancestors that have a mapping. + * + * The mapping is represented as a string of all the mapping data (key:value) defined in the + * context of the element. + * In this class, the method is generic and calls its parent getListOfElementsWithMappings(...) + * method. + * + * @param[in:out] configurableElementPath List of all the ConfigurableElements found + * that have a mapping. Elements are added at the end of the list, so the root Element will be + * the last one. + * + */ + virtual void getListOfElementsWithMapping(list<const CConfigurableElement*>& + configurableElementPath) const; + // Used for simulation and virtual subsystems virtual void setDefaultValues(CParameterAccessContext& parameterAccessContext) const; @@ -106,6 +123,7 @@ protected: virtual void fillSyncerSetFromDescendant(CSyncerSet& syncerSet) const; // Configuration Domain local search bool containsConfigurableDomain(const CConfigurableDomain* pConfigurableDomain) const; + private: // Configurable domain association void addAttachedConfigurableDomain(const CConfigurableDomain* pConfigurableDomain); |