summaryrefslogtreecommitdiffstats
path: root/parameter/BitParameterType.cpp
diff options
context:
space:
mode:
authorSebastien Gonzalve <oznog@zarb.org>2014-02-20 22:28:03 +0100
committerDavid Wagner <david.wagner@intel.com>2014-09-11 14:25:02 +0200
commitd9526499d6ab53b7d13d1434f748f6f2161c2e0a (patch)
tree8d2e2db275800821d4bf8873fc16b686bca60b2d /parameter/BitParameterType.cpp
parentffbf43b383bb8693741430b02c24dbc9b127f7f7 (diff)
downloadexternal_parameter-framework-d9526499d6ab53b7d13d1434f748f6f2161c2e0a.zip
external_parameter-framework-d9526499d6ab53b7d13d1434f748f6f2161c2e0a.tar.gz
external_parameter-framework-d9526499d6ab53b7d13d1434f748f6f2161c2e0a.tar.bz2
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.
Diffstat (limited to 'parameter/BitParameterType.cpp')
-rw-r--r--parameter/BitParameterType.cpp14
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;