From 2ecf900ad8c30ce9f8e81f57977a1a80a6f6d8af Mon Sep 17 00:00:00 2001 From: Patrick Benavoli Date: Wed, 31 Aug 2011 11:23:24 +0200 Subject: Parameter Framework: Parameter property display BZ: 7137 Added showProperties remote command Changed EQU to MONO_EQ for CAPTURE paths in LPE Subsystem structure definition Had to create a generic class for Parameter and BitParameter classes Change-Id: If6ab97ff002d8ba81df5a4a60bc3eb07dbe14e5e Orig-Change-Id: I425f81cd414b1c721f5c11169e9a489f5c638ab9 Signed-off-by: Patrick Benavoli Reviewed-on: http://android.intel.com:8080/16879 Reviewed-by: Mahe, Erwan Tested-by: Barthes, FabienX Reviewed-by: buildbot Tested-by: buildbot --- parameter/Element.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'parameter/Element.cpp') diff --git a/parameter/Element.cpp b/parameter/Element.cpp index 7b892b0..915bc65 100644 --- a/parameter/Element.cpp +++ b/parameter/Element.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include "XmlElementSerializingContext.h" #include "ElementLibrary.h" #include "ErrorContext.h" @@ -157,6 +158,33 @@ void CElement::dumpContent(string& strContent, CErrorContext& errorContext, cons } } +// Element properties +void CElement::showProperties(string& strResult) const +{ + strResult = "\n"; + strResult += "Kind: " + getKind() + "\n"; +} + +// Conversion utilities +string CElement::toString(uint32_t uiValue) +{ + ostringstream ostr; + + ostr << uiValue; + + return ostr.str(); +} + +string CElement::toString(int32_t iValue) +{ + ostringstream ostr; + + ostr << iValue; + + return ostr.str(); +} + +// Content dumping void CElement::logValue(string& strValue, CErrorContext& errorContext) const { (void)strValue; -- cgit v1.1