From a1258f4f8121fbda5223e3875ac7ef6d53195e4c Mon Sep 17 00:00:00 2001 From: Francois Gaffie Date: Mon, 7 Apr 2014 13:47:48 +0200 Subject: Add explicit API to append parameter path to error log BZ: 183857 Explicit API names makes the code easier to read, allowing even to remove some comments. This patch adds an API to append the parameter path to the error log. Change-Id: Id136497072e53c8dd0ea3d95354e1dfe6193f771 Signed-off-by: Francois Gaffie Signed-off-by: Mattijs Korpershoek --- parameter/BaseParameter.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'parameter/BaseParameter.h') diff --git a/parameter/BaseParameter.h b/parameter/BaseParameter.h index 7221fbc..3b1296e 100644 --- a/parameter/BaseParameter.h +++ b/parameter/BaseParameter.h @@ -80,4 +80,11 @@ protected: // Actual value access (to be implemented by derived) virtual bool doSetValue(const string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const = 0; virtual void doGetValue(string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const = 0; + + /** + * Append the parameter path to the error. + * + * @param[in:out] parameterAccessContext Parameter Access Context object. + */ + void appendParameterPathToError(CParameterAccessContext& parameterAccessContext) const; }; -- cgit v1.1