summaryrefslogtreecommitdiffstats
path: root/parameter/ConfigurableDomain.h
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/ConfigurableDomain.h
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/ConfigurableDomain.h')
-rw-r--r--parameter/ConfigurableDomain.h57
1 files changed, 29 insertions, 28 deletions
diff --git a/parameter/ConfigurableDomain.h b/parameter/ConfigurableDomain.h
index b58efb5..e91a5cb 100644
--- a/parameter/ConfigurableDomain.h
+++ b/parameter/ConfigurableDomain.h
@@ -34,6 +34,7 @@
#include <list>
#include <set>
#include <map>
+#include <string>
class CConfigurableElement;
class CDomainConfiguration;
@@ -42,10 +43,10 @@ class CSelectionCriteriaDefinition;
class CConfigurableDomain : public CBinarySerializableElement
{
- typedef list<CConfigurableElement*>::const_iterator ConfigurableElementListIterator;
- typedef map<const CConfigurableElement*, CSyncerSet*>::const_iterator ConfigurableElementToSyncerSetMapIterator;
+ typedef std::list<CConfigurableElement*>::const_iterator ConfigurableElementListIterator;
+ typedef std::map<const CConfigurableElement*, CSyncerSet*>::const_iterator ConfigurableElementToSyncerSetMapIterator;
public:
- CConfigurableDomain(const string& strName);
+ CConfigurableDomain(const std::string& strName);
virtual ~CConfigurableDomain();
// Sequence awareness
@@ -53,40 +54,40 @@ public:
bool getSequenceAwareness() const;
// Configuration Management
- bool createConfiguration(const string& strName, const CParameterBlackboard* pMainBlackboard, string& strError);
- bool deleteConfiguration(const string& strName, string& strError);
- bool renameConfiguration(const string& strName, const string& strNewName, string& strError);
- bool restoreConfiguration(const string& strName, CParameterBlackboard* pMainBlackboard, bool bAutoSync, list<string>& strError) const;
- bool saveConfiguration(const string& strName, const CParameterBlackboard* pMainBlackboard, string& strError);
- bool setElementSequence(const string& strConfiguration, const vector<string>& astrNewElementSequence, string& strError);
- bool getElementSequence(const string& strConfiguration, string& strResult) const;
- bool setApplicationRule(const string& strConfiguration, const string& strApplicationRule, const CSelectionCriteriaDefinition* pSelectionCriteriaDefinition, string& strError);
- bool clearApplicationRule(const string& strConfiguration, string& strError);
- bool getApplicationRule(const string& strConfiguration, string& strResult) const;
+ bool createConfiguration(const std::string& strName, const CParameterBlackboard* pMainBlackboard, std::string& strError);
+ bool deleteConfiguration(const std::string& strName, std::string& strError);
+ bool renameConfiguration(const std::string& strName, const std::string& strNewName, std::string& strError);
+ bool restoreConfiguration(const std::string& strName, CParameterBlackboard* pMainBlackboard, bool bAutoSync, std::list<std::string>& strError) const;
+ bool saveConfiguration(const std::string& strName, const CParameterBlackboard* pMainBlackboard, std::string& strError);
+ bool setElementSequence(const std::string& strConfiguration, const std::vector<std::string>& astrNewElementSequence, std::string& strError);
+ bool getElementSequence(const std::string& strConfiguration, std::string& strResult) const;
+ bool setApplicationRule(const std::string& strConfiguration, const std::string& strApplicationRule, const CSelectionCriteriaDefinition* pSelectionCriteriaDefinition, std::string& strError);
+ bool clearApplicationRule(const std::string& strConfiguration, std::string& strError);
+ bool getApplicationRule(const std::string& strConfiguration, std::string& strResult) const;
// Last applied configuration name
- string getLastAppliedConfigurationName() const;
+ std::string getLastAppliedConfigurationName() const;
// Pending configuration name
- string getPendingConfigurationName() const;
+ std::string getPendingConfigurationName() const;
// Associated Configurable elements
- void gatherConfigurableElements(set<const CConfigurableElement*>& configurableElementSet) const;
- void listAssociatedToElements(string& strResult) const;
+ void gatherConfigurableElements(std::set<const CConfigurableElement*>& configurableElementSet) const;
+ void listAssociatedToElements(std::string& strResult) const;
// Configurable elements association
- bool addConfigurableElement(CConfigurableElement* pConfigurableElement, const CParameterBlackboard* pMainBlackboard, string& strError);
- bool removeConfigurableElement(CConfigurableElement* pConfigurableElement, string& strError);
+ bool addConfigurableElement(CConfigurableElement* pConfigurableElement, const CParameterBlackboard* pMainBlackboard, std::string& strError);
+ bool removeConfigurableElement(CConfigurableElement* pConfigurableElement, std::string& strError);
// Blackboard Configuration and Base Offset retrieval
- CParameterBlackboard* findConfigurationBlackboard(const string& strConfiguration,
+ CParameterBlackboard* findConfigurationBlackboard(const std::string& strConfiguration,
const CConfigurableElement* pConfigurableElement,
uint32_t& uiBaseOffset,
bool& bIsLastApplied,
- string& strError) const;
+ std::string& strError) const;
// Domain splitting
- bool split(CConfigurableElement* pConfigurableElement, string& strError);
+ bool split(CConfigurableElement* pConfigurableElement, std::string& strError);
// Ensure validity on whole domain from main blackboard
void validate(const CParameterBlackboard* pMainBlackboard);
@@ -104,11 +105,11 @@ public:
virtual void toXml(CXmlElement& xmlElement, CXmlSerializingContext& serializingContext) const;
// Class kind
- virtual string getKind() const;
+ virtual std::string getKind() const;
protected:
// Content dumping
- virtual void logValue(string& strValue, CErrorContext& errorContext) const;
+ virtual void logValue(std::string& strValue, CErrorContext& errorContext) const;
private:
// Get pending configuration
@@ -164,14 +165,14 @@ private:
CSyncerSet* getSyncerSet(const CConfigurableElement* pConfigurableElement) const;
// Configuration retrieval
- CDomainConfiguration* findConfiguration(const string& strConfiguration, string& strError);
- const CDomainConfiguration* findConfiguration(const string& strConfiguration, string& strError) const;
+ CDomainConfiguration* findConfiguration(const std::string& strConfiguration, std::string& strError);
+ const CDomainConfiguration* findConfiguration(const std::string& strConfiguration, std::string& strError) const;
// Configurable elements
- list<CConfigurableElement*> _configurableElementList;
+ std::list<CConfigurableElement*> _configurableElementList;
// Associated syncer sets
- map<const CConfigurableElement*, CSyncerSet*> _configurableElementToSyncerSetMap;
+ std::map<const CConfigurableElement*, CSyncerSet*> _configurableElementToSyncerSetMap;
// Sequence awareness
bool _bSequenceAware;