From ff574884b80ca5e96960565ada430d8207951b31 Mon Sep 17 00:00:00 2001 From: Francois Gaffie Date: Tue, 15 Oct 2013 10:55:43 +0200 Subject: Add getbitposition API for bitfield BZ: 99956 Bitfield parameter type does not allow to retrieve the position of the bit. This patch introduces a new API to retrieve the bit position in the bitfield Change-Id: I54bf8a446e7bd53bed6acda274d32966a737c877 Signed-off-by: Francois Gaffie Reviewed-on: http://android.intel.com:8080/138517 Reviewed-by: Quintero, Jorge Reviewed-by: Centelles, Sylvain Tested-by: Barthes, FabienX Reviewed-by: Balestriere, VianneyX Tested-by: Balestriere, VianneyX --- parameter/BitParameterType.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'parameter/BitParameterType.h') diff --git a/parameter/BitParameterType.h b/parameter/BitParameterType.h index abf3c47..d59c62b 100644 --- a/parameter/BitParameterType.h +++ b/parameter/BitParameterType.h @@ -58,6 +58,14 @@ public: // CElement virtual string getKind() const; + + /** + * Get the position of the bit within the bit parameter block. + * It corresponds to the "pos" attribute found in the XML file. + * + * @return position of the bit. + */ + uint32_t getBitPos() const { return _uiBitPos; } private: // Instantiation virtual CInstanceConfigurableElement* doInstantiate() const; -- cgit v1.1