Salome HOME
CCAR:
[modules/kernel.git] / src / Batch / Batch_StringType.hxx
index 4471b2976a99f49d13757248b170cf0037ca47a9..fb5a80e0dd33575b96b673aca532faf33b60565b 100644 (file)
@@ -1,3 +1,24 @@
+//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+//  This library is free software; you can redistribute it and/or
+//  modify it under the terms of the GNU Lesser General Public
+//  License as published by the Free Software Foundation; either
+//  version 2.1 of the License.
+//
+//  This library is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+//  Lesser General Public License for more details.
+//
+//  You should have received a copy of the GNU Lesser General Public
+//  License along with this library; if not, write to the Free Software
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 /*
  * StringType.hxx : 
  *
 #ifndef _STRINGTYPE_H_
 #define _STRINGTYPE_H_
 
-using namespace std;
+#include "Batch_Defines.hxx"
+
 #include <string>
 #include "Batch_GenericType.hxx"
 
 namespace Batch {
 
-  class StringType : public GenericType
+  class BATCH_EXPORT StringType : public GenericType
   {
   public:
                // Constructeur
-    StringType(const string & s="")  : _data(s) {}
+    StringType(const std::string & s="")  : _data(s) {}
 
                // Conversion en chaine
-    virtual string affiche() const;
-    virtual operator string() const;
+    virtual std::string affiche() const;
+    virtual operator std::string() const;
 
                // Operateur d'affectation
-    virtual StringType & operator =(string);
+    virtual StringType & operator =(std::string);
 
                // Clone duplique l'objet et en fabrique un nouveau a l'aide de new
                // qu'il faudra detruire ensuite manuellement
     virtual GenericType * clone() const;
 
   protected:
-    string _data;
+    std::string _data;
 
   private: