X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBatch%2FBatch_StringType.hxx;h=fb5a80e0dd33575b96b673aca532faf33b60565b;hb=f464a8dab4fb05a38720c3fb6790117e9d5bb7b7;hp=4471b2976a99f49d13757248b170cf0037ca47a9;hpb=e071c8c9d9e68ea90fe984df89674dba97437c4b;p=modules%2Fkernel.git diff --git a/src/Batch/Batch_StringType.hxx b/src/Batch/Batch_StringType.hxx index 4471b2976..fb5a80e0d 100644 --- a/src/Batch/Batch_StringType.hxx +++ b/src/Batch/Batch_StringType.hxx @@ -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 : * @@ -10,31 +31,32 @@ #ifndef _STRINGTYPE_H_ #define _STRINGTYPE_H_ -using namespace std; +#include "Batch_Defines.hxx" + #include #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: