From 390b36d8129d3ece769c8542d9d3d3895ab13fbb Mon Sep 17 00:00:00 2001 From: Frederic Boisnard Date: Thu, 23 May 2013 15:28:31 +0200 Subject: [PFW] Add getFormattedMapping for InstanceConfigurableElements BZ: 99822 The mapping data need to be printed, however helper methods are missing to achieve this easily. This patch aims to add a new method "getFormattedMapping()" for CMappingData, allowing to format the mapping data as a string. Change-Id: Ia030c6b88905fcb7591ad45339712051eb88d1c1 Signed-off-by: Frederic Boisnard Reviewed-on: http://android.intel.com:8080/109301 Reviewed-by: Benavoli, Patrick Reviewed-by: De Chivre, Renaud Reviewed-by: Rocard, KevinX Reviewed-by: Denneulin, Guillaume Tested-by: Barthes, FabienX Reviewed-by: buildbot Tested-by: buildbot --- parameter/ComponentInstance.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'parameter/ComponentInstance.h') diff --git a/parameter/ComponentInstance.h b/parameter/ComponentInstance.h index 536adb8..7a2f268 100644 --- a/parameter/ComponentInstance.h +++ b/parameter/ComponentInstance.h @@ -36,6 +36,12 @@ public: // Mapping info virtual bool getMappingData(const string& strKey, const string*& pStrValue) const; virtual bool hasMappingData() const; + /** + * Returns the mapping associated to the current TypeElement instance + * + * @return A string containing the mapping as a comma separated key value pairs + */ + virtual string getFormattedMapping() const; // From IXmlSink virtual bool fromXml(const CXmlElement& xmlElement, CXmlSerializingContext& serializingContext); -- cgit v1.1