diff options
Diffstat (limited to 'parameter/FixedPointParameterType.h')
-rw-r--r-- | parameter/FixedPointParameterType.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/parameter/FixedPointParameterType.h b/parameter/FixedPointParameterType.h index 3ef53eb..c2f5f47 100644 --- a/parameter/FixedPointParameterType.h +++ b/parameter/FixedPointParameterType.h @@ -31,10 +31,12 @@ #include "ParameterType.h" +#include <string> + class CFixedPointParameterType : public CParameterType { public: - CFixedPointParameterType(const string& strName); + CFixedPointParameterType(const std::string& strName); // From IXmlSink virtual bool fromXml(const CXmlElement& xmlElement, CXmlSerializingContext& serializingContext); @@ -48,17 +50,17 @@ public: /// Conversion // String - virtual bool toBlackboard(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; - virtual bool fromBlackboard(string& strValue, const uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; + virtual bool toBlackboard(const std::string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; + virtual bool fromBlackboard(std::string& strValue, const uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; // Double virtual bool toBlackboard(double dUserValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; virtual bool fromBlackboard(double& dUserValue, uint32_t uiValue, CParameterAccessContext& parameterAccessContext) const; // Element properties - virtual void showProperties(string& strResult) const; + virtual void showProperties(std::string& strResult) const; // CElement - virtual string getKind() const; + virtual std::string getKind() const; private: // Util size uint32_t getUtilSizeInBits() const; @@ -73,7 +75,7 @@ private: * * @return true if the string is written as hexa, false otherwise. */ - bool isHexadecimal(const string& strValue) const; + bool isHexadecimal(const std::string& strValue) const; /** * Convert a decimal raw represented string into an unsigned long integer. @@ -87,7 +89,7 @@ private: * * @return true if the string was successfully converted, false otherwise. */ - bool convertFromDecimal(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; + bool convertFromDecimal(const std::string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; /** * Convert an hexadecimal raw represented string into an unsigned long integer. @@ -101,7 +103,7 @@ private: * * @return true if the string was successfully converted, false otherwise. */ - bool convertFromHexadecimal(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; + bool convertFromHexadecimal(const std::string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; /** * Convert a Qn.m represented string into an unsigned long integer. @@ -115,7 +117,7 @@ private: * * @return true if the string was successfully converted, false otherwise. */ - bool convertFromQnm(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; + bool convertFromQnm(const std::string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; /** * Set the out of range error. @@ -125,7 +127,7 @@ private: * @param[in] strValue Parameter read from the XML file representated as a string * @param[in:out] parameterAccessContext Parameter Access Context */ - void setOutOfRangeError(const string& strValue, CParameterAccessContext& parameterAccessContext) const; + void setOutOfRangeError(const std::string& strValue, CParameterAccessContext& parameterAccessContext) const; // Check if data is encodable bool checkValueAgainstRange(double dValue) const; |