diff options
author | Francois Gaffie <francois.gaffie@intel.com> | 2013-10-15 10:55:43 +0200 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-02-12 17:04:14 +0100 |
commit | ff574884b80ca5e96960565ada430d8207951b31 (patch) | |
tree | 30dcc0f3091911c8d5557dec61e458fb9378f11e /parameter/BitParameterType.h | |
parent | f7ca601a1e33fabffc7213e8bbc44b5f2680e478 (diff) | |
download | external_parameter-framework-ff574884b80ca5e96960565ada430d8207951b31.zip external_parameter-framework-ff574884b80ca5e96960565ada430d8207951b31.tar.gz external_parameter-framework-ff574884b80ca5e96960565ada430d8207951b31.tar.bz2 |
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 <francois.gaffie@intel.com>
Reviewed-on: http://android.intel.com:8080/138517
Reviewed-by: Quintero, Jorge <jorge.quintero@intel.com>
Reviewed-by: Centelles, Sylvain <sylvain.centelles@intel.com>
Tested-by: Barthes, FabienX <fabienx.barthes@intel.com>
Reviewed-by: Balestriere, VianneyX <vianneyx.balestriere@intel.com>
Tested-by: Balestriere, VianneyX <vianneyx.balestriere@intel.com>
Diffstat (limited to 'parameter/BitParameterType.h')
-rw-r--r-- | parameter/BitParameterType.h | 8 |
1 files changed, 8 insertions, 0 deletions
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; |