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>
diff --git a/parameter/InstanceConfigurableElement.cpp b/parameter/InstanceConfigurableElement.cpp
index cc84a3e..d3cd740 100644
--- a/parameter/InstanceConfigurableElement.cpp
+++ b/parameter/InstanceConfigurableElement.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* INTEL CONFIDENTIAL
* Copyright © 2011 Intel
* Corporation All Rights Reserved.
@@ -100,6 +100,19 @@
return true;
}
+void CInstanceConfigurableElement::getListOfElementsWithMapping(
+ list<const CConfigurableElement*>& configurableElementPath) const
+{
+ const CTypeElement* pTypeElement = getTypeElement();
+
+ if (pTypeElement && pTypeElement->hasMappingData()) {
+
+ configurableElementPath.push_back(this);
+ }
+
+ base::getListOfElementsWithMapping(configurableElementPath);
+}
+
// Element properties
void CInstanceConfigurableElement::showProperties(string& strResult) const
{