X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDLoader%2FMEDLoaderBase.hxx;h=0b6ea093f99e05c3252980d8d41c238f5fa5b415;hb=844b1a4785909ad42206965838a6d0f826dfb5c1;hp=504b4b0d37dff3d3282b1665019f5a0e74fff569;hpb=293a6104470482e450701aa8061d9b244f2057d5;p=tools%2Fmedcoupling.git diff --git a/src/MEDLoader/MEDLoaderBase.hxx b/src/MEDLoader/MEDLoaderBase.hxx index 504b4b0d3..0b6ea093f 100644 --- a/src/MEDLoader/MEDLoaderBase.hxx +++ b/src/MEDLoader/MEDLoaderBase.hxx @@ -1,9 +1,9 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D +// Copyright (C) 2007-2019 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 // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -29,19 +29,19 @@ class MEDLOADER_EXPORT MEDLoaderBase { public: - static int getStatusOfFile(const char *fileName); + static int getStatusOfFile(const std::string& fileName); static char *buildEmptyString(int lgth); - static void getDirAndBaseName(const std::string& fullName, std::string& dirName, std::string& baseName) throw(INTERP_KERNEL::Exception); - static std::string getPathSep() throw(INTERP_KERNEL::Exception); - static std::string joinPath(const std::string& dirName, const std::string& baseName) throw(INTERP_KERNEL::Exception); + static void getDirAndBaseName(const std::string& fullName, std::string& dirName, std::string& baseName); + static std::string getPathSep(); + static std::string joinPath(const std::string& dirName, const std::string& baseName); static std::string buildUnionUnit(const char *name, int nameLgth, const char *unit, int unitLgth); static void splitIntoNameAndUnit(const std::string& s, std::string& name, std::string& unit); static void strip(std::string& s); - static void safeStrCpy(const char *src, int maxLgth, char *dest, int behaviour) throw(INTERP_KERNEL::Exception); - static void safeStrCpy2(const char *src, int maxLgth, char *dest, int behaviour) throw(INTERP_KERNEL::Exception); + static void safeStrCpy(const char *src, int maxLgth, char *dest, int behaviour); + static void safeStrCpy2(const char *src, int maxLgth, char *dest, int behaviour); static std::string buildStringFromFortran(const char *expr, int lgth); static void zipEqualConsChar(std::string& s, int minConsSmChar); - static std::string zipString(const char *src, int sizeToRespect); + static std::string zipString(const std::string& src, int sizeToRespect); public: static const int EXIST_RW=0; static const int NOT_EXIST=1;