diff options
author | Frédéric Boisnard <fredericx.boisnard@intel.com> | 2013-02-25 15:55:47 +0100 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-02-12 17:03:47 +0100 |
commit | 6bc17c03f4b006a411b768fca33269843144542d (patch) | |
tree | 7012b94b33ca14ab9f22902749855ba01b8787e7 /parameter/ParameterAccessContext.h | |
parent | 3aa0db4be952157c2842b91a1606cc0edac9e63d (diff) | |
download | external_parameter-framework-6bc17c03f4b006a411b768fca33269843144542d.zip external_parameter-framework-6bc17c03f4b006a411b768fca33269843144542d.tar.gz external_parameter-framework-6bc17c03f4b006a411b768fca33269843144542d.tar.bz2 |
[PFW] Take into account base offset when accessing value of parameters
BZ: 88357
This patch aims to offer the possibility of accessing the value of
parameters from a Configuration blackboard instead of Main blackboard.
The read/write operation is now relative to the base offset of the
ancestor element associated to the Configuration.
The base offset is stored in the ParameterAccessContext.
Change-Id: I158df63d2ef3bd8cbacb84b7d2f51723ed1074f5
Signed-off-by: Frédéric Boisnard <fredericx.boisnard@intel.com>
Reviewed-on: http://android.intel.com:8080/93671
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Dixon, CharlesX <charlesx.dixon@intel.com>
Tested-by: Dixon, CharlesX <charlesx.dixon@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'parameter/ParameterAccessContext.h')
-rw-r--r-- | parameter/ParameterAccessContext.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/parameter/ParameterAccessContext.h b/parameter/ParameterAccessContext.h index 6104f89..f0ca74f 100644 --- a/parameter/ParameterAccessContext.h +++ b/parameter/ParameterAccessContext.h @@ -24,6 +24,7 @@ */ #pragma once +#include <stdint.h> #include "ErrorContext.h" class CParameterBlackboard; @@ -31,8 +32,8 @@ class CParameterBlackboard; class CParameterAccessContext : public CErrorContext { public: - CParameterAccessContext(string& strError, CParameterBlackboard* pParameterBlackboard, bool bValueSpaceIsRaw, bool bOutputRawFormatIsHex = false); - CParameterAccessContext(string& strError, bool bBigEndianSubsystem, CParameterBlackboard* pParameterBlackboard); + CParameterAccessContext(string& strError, CParameterBlackboard* pParameterBlackboard, bool bValueSpaceIsRaw, bool bOutputRawFormatIsHex = false, uint32_t uiOffsetBase = 0); + CParameterAccessContext(string& strError, bool bBigEndianSubsystem, CParameterBlackboard* pParameterBlackboard, uint32_t uiOffsetBase = 0); CParameterAccessContext(string& strError); // ParameterBlackboard @@ -55,6 +56,10 @@ public: void setAutoSync(bool bAutoSync); bool getAutoSync() const; + // Base offset for blackboard access + void setBaseOffset(uint32_t uiBaseOffset); + uint32_t getBaseOffset() const; + private: // Blackboard CParameterBlackboard* _pParameterBlackboard; @@ -66,5 +71,7 @@ private: bool _bBigEndianSubsystem; // Automatic synchronization to HW bool _bAutoSync; + // Base offset where parameters are stored in configuration blackboards + uint32_t _uiBaseOffset; }; |