From d9526499d6ab53b7d13d1434f748f6f2161c2e0a Mon Sep 17 00:00:00 2001 From: Sebastien Gonzalve Date: Thu, 20 Feb 2014 22:28:03 +0100 Subject: Remove using std::XXX from headers This is a bad practice to have using in headers because it pollutes the namespace of any user of that header. --- parameter/SubsystemObject.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'parameter/SubsystemObject.h') diff --git a/parameter/SubsystemObject.h b/parameter/SubsystemObject.h index 1b37201..ab085bc 100755 --- a/parameter/SubsystemObject.h +++ b/parameter/SubsystemObject.h @@ -32,6 +32,8 @@ #include "Syncer.h" #include +#include + class CInstanceConfigurableElement; class CMappingContext; class CSubsystem; @@ -45,9 +47,9 @@ public: /** * Return the mapping value of the SubystemObject. * - * @return A string containing the mapping value + * @return A std::string containing the mapping value */ - virtual string getFormattedMappingValue() const; + virtual std::string getFormattedMappingValue() const; // Configurable element retrieval const CInstanceConfigurableElement* getConfigurableElement() const; @@ -58,8 +60,8 @@ protected: // Size uint32_t getSize() const; // Conversion utility - static uint32_t asInteger(const string& strValue); - static string asString(uint32_t uiValue); + static uint32_t asInteger(const std::string& strValue); + static std::string asString(uint32_t uiValue); /** * Conversion of int8, int16, int32 to int (taking care of sign extension) @@ -73,22 +75,22 @@ protected: int sizeOptimizedData); // Sync to/from HW - virtual bool sendToHW(string& strError); - virtual bool receiveFromHW(string& strError); + virtual bool sendToHW(std::string& strError); + virtual bool receiveFromHW(std::string& strError); // Fall back HW access - virtual bool accessHW(bool bReceive, string& strError); + virtual bool accessHW(bool bReceive, std::string& strError); // Blackboard access from subsystems void blackboardRead(void* pvData, uint32_t uiSize); void blackboardWrite(const void* pvData, uint32_t uiSize); // Logging - void log_info(const string& strMessage, ...) const; - void log_warning(const string& strMessage, ...) const; + void log_info(const std::string& strMessage, ...) const; + void log_warning(const std::string& strMessage, ...) const; // Belonging Subsystem retrieval const CSubsystem* getSubsystem() const; private: // from ISyncer - virtual bool sync(CParameterBlackboard& parameterBlackboard, bool bBack, string& strError); + virtual bool sync(CParameterBlackboard& parameterBlackboard, bool bBack, std::string& strError); // Default back synchronization void setDefaultValues(CParameterBlackboard& parameterBlackboard) const; -- cgit v1.2.3