diff options
author | David Wagner <david.wagner@intel.com> | 2014-10-24 17:41:58 +0200 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-10-24 17:41:58 +0200 |
commit | d9ad02e2a322fff355cd113c5bb98ff4667a95f2 (patch) | |
tree | 7bfbb4fd253ffa8abb98f03887a4e76f1f26caaa /parameter/SubsystemObject.h | |
parent | a022e315ecfede7bb37ab17382482eb794b33f00 (diff) | |
parent | d9526499d6ab53b7d13d1434f748f6f2161c2e0a (diff) | |
download | external_parameter-framework-d9ad02e2a322fff355cd113c5bb98ff4667a95f2.zip external_parameter-framework-d9ad02e2a322fff355cd113c5bb98ff4667a95f2.tar.gz external_parameter-framework-d9ad02e2a322fff355cd113c5bb98ff4667a95f2.tar.bz2 |
Merge pull request #13 from 01org/OznOg-bis
some C++ cleanup
Diffstat (limited to 'parameter/SubsystemObject.h')
-rwxr-xr-x | parameter/SubsystemObject.h | 22 |
1 files changed, 12 insertions, 10 deletions
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 <stdint.h> +#include <string> + 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; |