summaryrefslogtreecommitdiffstats
path: root/parameter/IntegerParameterType.h
diff options
context:
space:
mode:
authorGuillaume Denneulin <guillaume.denneulin@intel.com>2014-01-10 14:58:42 +0100
committerDavid Wagner <david.wagner@intel.com>2014-02-12 17:04:19 +0100
commita6b01d2049a137932f303cdee554d8d2703d7af7 (patch)
tree1babc313169e1299f8e98d741df88046a12567dd /parameter/IntegerParameterType.h
parent28119d8ec7d49b5fab310f08e6fc40c910e3bc8a (diff)
downloadexternal_parameter-framework-a6b01d2049a137932f303cdee554d8d2703d7af7.zip
external_parameter-framework-a6b01d2049a137932f303cdee554d8d2703d7af7.tar.gz
external_parameter-framework-a6b01d2049a137932f303cdee554d8d2703d7af7.tar.bz2
Add integer conversion that can take care of sign extension
BZ: 163707 When using signed integers of size 8 or 16, the bit of sign needs to be propagated if the API called by the plugin wait for "int" type Add the virtual toInteger function in CTypeElement for each parameter type to take care of conversion to "int". Specialize this function in the class CIntegerParameterType to take care of sign extension. Change-Id: I41183dccbcc21212299d1dde86b3ad4ba8432ce4 Signed-off-by: Guillaume Denneulin <guillaume.denneulin@intel.com>
Diffstat (limited to 'parameter/IntegerParameterType.h')
-rwxr-xr-x[-rw-r--r--]parameter/IntegerParameterType.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/parameter/IntegerParameterType.h b/parameter/IntegerParameterType.h
index 9fb0dfd..29d28b7 100644..100755
--- a/parameter/IntegerParameterType.h
+++ b/parameter/IntegerParameterType.h
@@ -59,8 +59,12 @@ public:
// Element properties
virtual void showProperties(string& strResult) const;
+ // Integer conversion
+ virtual int toPlainInteger(int iSizeOptimizedData) const;
+
// CElement
virtual string getKind() const;
+
private:
// Returns true if children dynamic creation is to be dealt with
virtual bool childrenAreDynamic() const;