X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDLoader%2FMEDFileUtilities.cxx;h=7d529b4135c8c612bac166888c7598a5cb302e41;hb=b3e8c56154c10c414f8a75397cc65ffc9c9e9f70;hp=6114e0ea7086164a35c9ed0f90fa80cf7e98c347;hpb=10f37bf6f33a762626d7f1093b2f5450c1688667;p=tools%2Fmedcoupling.git diff --git a/src/MEDLoader/MEDFileUtilities.cxx b/src/MEDLoader/MEDFileUtilities.cxx index 6114e0ea7..7d529b413 100644 --- a/src/MEDLoader/MEDFileUtilities.cxx +++ b/src/MEDLoader/MEDFileUtilities.cxx @@ -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 @@ -16,6 +16,7 @@ // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // +// Author : Anthony Geay (CEA/DEN) #include "MEDFileUtilities.hxx" #include "MEDLoaderBase.hxx" @@ -37,16 +38,19 @@ med_access_mode MEDFileUtilities::TraduceWriteMode(int medloaderwritemode) throw } } -int MEDFileUtilities::TraduceFieldType(med_field_type ft) throw(INTERP_KERNEL::Exception) +const char *MEDFileUtilities::GetReadableMEDFieldType(med_field_type ft) throw(INTERP_KERNEL::Exception) { + static const char medFloat64[]="MED_FLOAT64"; + static const char medInt32[]="MED_INT32"; + static const char medInt64[]="MED_INT64"; switch(ft) { case MED_FLOAT64: - return 0; + return medFloat64; case MED_INT32: - return 1; + return medInt32; case MED_INT64: - return 2; + return medInt64; default: throw INTERP_KERNEL::Exception("Non supported field type ! Should be FLOAT64, INT32 or INT64 !"); }