Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __MEDLOADERBASE_HXX__
00021 #define __MEDLOADERBASE_HXX__
00022
00023 #include "MEDLoaderDefines.hxx"
00024 #include "InterpKernelException.hxx"
00025
00026 #include <string>
00027
00028 class MEDLOADER_EXPORT MEDLoaderBase
00029 {
00030 public:
00031 static int getStatusOfFile(const char *fileName);
00032 static char *buildEmptyString(int lgth);
00033 static std::string buildUnionUnit(const char *name, int nameLgth, const char *unit, int unitLgth);
00034 static void splitIntoNameAndUnit(const std::string& s, std::string& name, std::string& unit);
00035 static void strip(std::string& s);
00036 static void safeStrCpy(const char *src, int maxLgth, char *dest, int behaviour) throw(INTERP_KERNEL::Exception);
00037 static void safeStrCpy2(const char *src, int maxLgth, char *dest, int behaviour) throw(INTERP_KERNEL::Exception);
00038 static std::string buildStringFromFortran(const char *expr, int lgth);
00039 static void zipEqualConsChar(std::string& s, int minConsSmChar);
00040 static std::string zipString(const char *src, int sizeToRespect);
00041 public:
00042 static const int EXIST_RW=0;
00043 static const int NOT_EXIST=1;
00044 static const int EXIST_RDONLY=2;
00045 static const int EXIST_WRONLY=3;
00046 static const int DIR_LOCKED=4;
00047 static const char WHITE_SPACES[];
00048 };
00049
00050 #endif