]> SALOME platform Git repositories - tools/medcoupling.git/blobdiff - src/MEDLoader/MEDFileParameter.hxx
Salome HOME
All getName method return std::string now
[tools/medcoupling.git] / src / MEDLoader / MEDFileParameter.hxx
index c3e61962ca2aacf96264fb882ac4673da9824884..cb4c6fad1e8347be21cdcc5aefa7277e5ff15894 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2013  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -80,9 +80,9 @@ namespace ParaMEDMEM
   {
   public:
     void setDescription(const char *name) { _desc_name=name; }
-    const char *getDescription() const { return _desc_name.c_str(); }
+    std::string getDescription() const { return _desc_name; }
     void setTimeUnit(const char *unit) { _dt_unit=unit; }
-    const char *getTimeUnit() const { return _dt_unit.c_str(); }
+    std::string getTimeUnit() const { return _dt_unit; }
     std::size_t getHeapMemSizeOfStrings() const;
     bool isEqualStrings(const MEDFileParameterTinyInfo& other, std::string& what) const;
   protected:
@@ -106,7 +106,7 @@ namespace ParaMEDMEM
     virtual std::string simpleRepr() const;
     std::size_t getHeapMemorySize() const;
     void setName(const char *name) throw(INTERP_KERNEL::Exception) { _name=name; }
-    const char *getName() const throw(INTERP_KERNEL::Exception) { return _name.c_str(); }
+    std::string getName() const throw(INTERP_KERNEL::Exception) { return _name; }
     void write(const char *fileName, int mode) const throw(INTERP_KERNEL::Exception);
   private:
     MEDFileParameterDouble1TS();
@@ -121,7 +121,7 @@ namespace ParaMEDMEM
     static MEDFileParameterMultiTS *New();
     static MEDFileParameterMultiTS *New(const char *fileName) throw(INTERP_KERNEL::Exception);
     static MEDFileParameterMultiTS *New(const char *fileName, const char *paramName) throw(INTERP_KERNEL::Exception);
-    const char *getName() const { return _name.c_str(); }
+    std::string getName() const { return _name; }
     void setName(const char *name) { _name=name; }
     std::size_t getHeapMemorySize() const;
     MEDFileParameterMultiTS *deepCpy() const throw(INTERP_KERNEL::Exception);