summaryrefslogtreecommitdiffstats
path: root/parameter/ParameterMgr.h
diff options
context:
space:
mode:
authorPatrick Benavoli <patrick.benavoli@intel.com>2014-07-08 14:09:09 +0200
committerPhilippe Afonso <philippex.afonso@intel.com>2015-02-18 11:13:26 +0100
commit0548523ab6bbca766dcce4be97a0c50efd529d90 (patch)
tree4df756d6875dc1a0afc7835c3a16fb69b451c1da /parameter/ParameterMgr.h
parent79694d5d0a632ed4ca04ea42f19fb09c3fba0cdb (diff)
downloadexternal_parameter-framework-0548523ab6bbca766dcce4be97a0c50efd529d90.zip
external_parameter-framework-0548523ab6bbca766dcce4be97a0c50efd529d90.tar.gz
external_parameter-framework-0548523ab6bbca766dcce4be97a0c50efd529d90.tar.bz2
Adding XML format to Criteria export tuning I/F
BZ: 209937 The "listCriteria" command returns the list of criteria in a human readable way. However, external tools that require to know this list of criteria have trouble parsing this output. An XML output would solve the issue. Changed "listCriteria" command to accept "XML" as first and only argument. In the end, listCriteria command accepts the 3 following forms: - listCriteria => will list the criteria states and type content in a human readable format - listCriteria csv|CSV => will list the criteria states and type content in a CSV format - listCriteria xml|XML => will list the criteria states and type content in an XML format Removed python binding accordingly. Change-Id: Ib060ec0a5d1ff87ba6c25caf4e0d5839a7927715 Signed-off-by: Patrick Benavoli <patrick.benavoli@intel.com> Signed-off-by: Sebastien Gonzalve <sebastien.gonzalve@intel.com>
Diffstat (limited to 'parameter/ParameterMgr.h')
-rw-r--r--parameter/ParameterMgr.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/parameter/ParameterMgr.h b/parameter/ParameterMgr.h
index 7edace1..03a1e92 100644
--- a/parameter/ParameterMgr.h
+++ b/parameter/ParameterMgr.h
@@ -88,7 +88,7 @@ class CParameterMgr : private CElement
};
// Version
static const uint32_t guiEditionMajor = 0x2;
- static const uint32_t guiEditionMinor = 0x3;
+ static const uint32_t guiEditionMinor = 0x4;
static const uint32_t guiRevision = 0x0;
// Parameter handle friendship
@@ -340,14 +340,16 @@ public:
bool exportDomainsBinary(const std::string& strFileName, std::string& strError);
/**
- * Method that creates an Xml description of the instanciated parameter structure contained
- * in SystemClass.
+ * Method that exports an Xml description of the passed element into a string
*
- * @param[out] strResult contains the xml description of SystemClass or the errors if any
+ * @param[in] pXmlSource The source element to export
+ * @param[in] strRootElementType The XML root element name of the exported instance document
+ * @param[in] bValidateWithSchema true if source XML document requires validation against schema
+ * @param[out] strResult contains the xml description or the error description in case false is returned
*
- * @return false if any error occures during the creation of the xml description
+ * @return true for success, false if any error occurs during the creation of the xml description (validation or encoding)
*/
- bool getSystemClassXMLString(std::string& strResult);
+ bool exportElementToXMLString(const IXmlSource* pXmlSource, const std::string& strRootElementType, bool bValidateWithSchema, std::string& strResult) const;
// CElement
virtual std::string getKind() const;