diff options
-rw-r--r-- | parameter/ParameterHandle.cpp | 2 | ||||
-rw-r--r-- | parameter/include/ParameterHandle.h | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/parameter/ParameterHandle.cpp b/parameter/ParameterHandle.cpp index 7987ecb..9e73974 100644 --- a/parameter/ParameterHandle.cpp +++ b/parameter/ParameterHandle.cpp @@ -87,7 +87,7 @@ bool CParameterHandle::setAsBoolean(bool bValue, string& strError) return _pBaseParameter->accessAsBoolean(bValue, true, parameterAccessContext); } -bool CParameterHandle::getAsBoolean(bool bValue, string& strError) const +bool CParameterHandle::getAsBoolean(bool& bValue, string& strError) const { // Check operation validity if (!checkAccessValidity(false, 0, strError)) { diff --git a/parameter/include/ParameterHandle.h b/parameter/include/ParameterHandle.h index 0e6660f..d548b80 100644 --- a/parameter/include/ParameterHandle.h +++ b/parameter/include/ParameterHandle.h @@ -45,7 +45,16 @@ public: // Boolean access bool setAsBoolean(bool bValue, std::string& strError); - bool getAsBoolean(bool bValue, std::string& strError) const; + + /** + * Fetch the parameter value as a boolean. + * + * @param bValue Reference to a boolean variable where the value will be stored + * @param strError Error message if a problem occured + * + * @return true on success, false otherwise + */ + bool getAsBoolean(bool& bValue, std::string& strError) const; bool setAsBooleanArray(const std::vector<bool>& abValues, std::string& strError); bool getAsBooleanArray(std::vector<bool>& abValues, std::string& strError) const; |