Salome HOME
updated copyright message
[modules/gui.git] / src / TreeData / DataObject.hxx
index e4c2a8913e07dc9fa4ac8a4c1e4c5f32449fce49..b0396f3ea5f015539da6a21f20e13ad791ca5902 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -26,7 +26,6 @@
 
 #include <map>
 #include <string>
-using namespace std;
 
 class TREEDATA_EXPORT DataObject {
 
@@ -34,35 +33,35 @@ public:
   DataObject();
   ~DataObject();
 
-  void setLabel(string label);
-  string getLabel();
-  void setProperty(string key, string value);
-  string getProperty(string key);
+  void setLabel(std::string label);
+  std::string getLabel();
+  void setProperty(std::string key, std::string value);
+  std::string getProperty(std::string key);
 
   /*!
    * This function specifies the localization of the object in the
    * hierarchical organization that can be defined by the DataModel it
    * belongs to.
    */
-  virtual string getPath() = 0;
-  string getPathName();
-  string getNameId();
+  virtual std::string getPath() = 0;
+  std::string getPathName();
+  std::string getNameId();
 
-  static const string pathsep;
+  static const std::string pathsep;
 
   /*! This function can be used for debug */
-  string toString();
+  std::string toString();
 
 private:
   /*! The name this object can be displayed with */
-  string _label;
+  std::string _label;
   /*! The identifier of this object. An identifier is invariant all the session long */
-  string _nameId;
+  std::string _nameId;
   /*! The dictionnary of properties that characterize this object */
-  map<string, string> _properties;
+  std::map<std::string, std::string> _properties;
 
   static int _lastId;
-  static const string _BASENAME;
+  static const std::string _BASENAME;
 };
 
 #endif // DATAOBJECT_H