From 1352ae53c457466fadb3aa35f01afab899548657 Mon Sep 17 00:00:00 2001 From: Patrick Benavoli Date: Fri, 21 Oct 2011 16:48:04 +0200 Subject: parameter-framework: Added string parameters BZ: 12819 String parameters are specified in the XML structure with a MaxLength attribute. MaxLength corresponds to the maximum amount of characters the string parameter can handle. String parameters are expressend in the form of tokens, that is they don't contain any sort of space characters. For now, string parameter arrays are not supported. Change-Id: Ifbb006e3d2e3077535c32c0fd579cc04872a82b0 Signed-off-by: Patrick Benavoli Reviewed-on: http://android.intel.com:8080/22319 Reviewed-by: Centelles, Sylvain Tested-by: Barthes, FabienX Reviewed-by: buildbot Tested-by: buildbot Reviewed-on: http://android.intel.com:8080/26778 Reviewed-by: Barthes, FabienX --- parameter/ParameterBlackboard.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'parameter/ParameterBlackboard.h') diff --git a/parameter/ParameterBlackboard.h b/parameter/ParameterBlackboard.h index da4fc7b..0427311 100644 --- a/parameter/ParameterBlackboard.h +++ b/parameter/ParameterBlackboard.h @@ -46,8 +46,10 @@ public: uint32_t getSize() const; // Single parameter access - void write(const void* pvSrcData, uint32_t uiSize, uint32_t uiOffset, bool bBigEndian); - void read(void* pvDstData, uint32_t uiSize, uint32_t uiOffset, bool bBigEndian) const; + void writeInteger(const void* pvSrcData, uint32_t uiSize, uint32_t uiOffset, bool bBigEndian); + void readInteger(void* pvDstData, uint32_t uiSize, uint32_t uiOffset, bool bBigEndian) const; + void writeString(const char* pcSrcData, uint32_t uiOffset); + void readString(char* pcDstData, uint32_t uiOffset) const; // Access from/to subsystems uint8_t* getLocation(uint32_t uiOffset); -- cgit v1.1