diff options
author | Patrick Benavoli <patrick.benavoli@intel.com> | 2014-07-08 14:09:09 +0200 |
---|---|---|
committer | Philippe Afonso <philippex.afonso@intel.com> | 2015-02-18 11:13:26 +0100 |
commit | 0548523ab6bbca766dcce4be97a0c50efd529d90 (patch) | |
tree | 4df756d6875dc1a0afc7835c3a16fb69b451c1da /parameter/SelectionCriterionType.h | |
parent | 79694d5d0a632ed4ca04ea42f19fb09c3fba0cdb (diff) | |
download | external_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/SelectionCriterionType.h')
-rw-r--r-- | parameter/SelectionCriterionType.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/parameter/SelectionCriterionType.h b/parameter/SelectionCriterionType.h index bfef21e..ef4176a 100644 --- a/parameter/SelectionCriterionType.h +++ b/parameter/SelectionCriterionType.h @@ -63,6 +63,15 @@ public: // Formatted state virtual std::string getFormattedState(int iValue) const; + /** + * Export to XML + * + * @param[in] xmlElement The XML element to export to + * @param[in] serializingContext The serializing context + * + */ + virtual void toXml(CXmlElement& xmlElement, CXmlSerializingContext& serializingContext) const; + // From CElement virtual std::string getKind() const; private: |