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/BitParameterType.cpp | |
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/BitParameterType.cpp')
-rw-r--r-- | parameter/BitParameterType.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/parameter/BitParameterType.cpp b/parameter/BitParameterType.cpp index 376b9db..2a400d4 100644 --- a/parameter/BitParameterType.cpp +++ b/parameter/BitParameterType.cpp @@ -36,6 +36,8 @@ #define base CTypeElement +using std::string; + CBitParameterType::CBitParameterType(const string& strName) : base(strName), _uiBitPos(0), _uiBitSize(0), _uiMax(uint64_t(-1)) { } @@ -84,7 +86,7 @@ bool CBitParameterType::fromXml(const CXmlElement& xmlElement, CXmlSerializingCo if (_uiBitPos + _uiBitSize > uiParentBlockBitSize) { // Range exceeded - ostringstream strStream; + std::ostringstream strStream; strStream << "Pos and Size attributes inconsistent with maximum container element size (" << uiParentBlockBitSize << " bits) for " + getKind(); @@ -101,7 +103,7 @@ bool CBitParameterType::fromXml(const CXmlElement& xmlElement, CXmlSerializingCo if (_uiMax > getMaxEncodableValue()) { // Max value exceeded - ostringstream strStream; + std::ostringstream strStream; strStream << "Max attribute inconsistent with maximum encodable size (" << getMaxEncodableValue() << ") for " + getKind(); @@ -130,13 +132,13 @@ bool CBitParameterType::toBlackboard(const string& strValue, uint64_t& uiValue, if (uiConvertedValue > _uiMax) { // Range exceeded - ostringstream strStream; + std::ostringstream strStream; strStream << "Value " << strValue << " standing out of admitted range ["; if (bValueProvidedAsHexa) { - strStream << "0x0, " << "0x" << hex << uppercase; + strStream << "0x0, " << "0x" << std::hex << std::uppercase; } else { strStream << "0, "; @@ -159,12 +161,12 @@ void CBitParameterType::fromBlackboard(string& strValue, const uint64_t& uiValue uint64_t uiConvertedValue = (uiValue & getMask()) >> _uiBitPos; // Format - ostringstream strStream; + std::ostringstream strStream; // Take care of format if (parameterAccessContext.valueSpaceIsRaw() && parameterAccessContext.outputRawFormatIsHex()) { - strStream << "0x" << hex << uppercase; + strStream << "0x" << std::hex << std::uppercase; } strStream << uiConvertedValue; |