Salome HOME
projects
/
tools
/
medcoupling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MEDReader ready -> debug is in progress.
[tools/medcoupling.git]
/
src
/
MEDLoader
/
MEDFileUtilities.cxx
diff --git
a/src/MEDLoader/MEDFileUtilities.cxx
b/src/MEDLoader/MEDFileUtilities.cxx
index 6114e0ea7086164a35c9ed0f90fa80cf7e98c347..7d529b4135c8c612bac166888c7598a5cb302e41 100644
(file)
--- a/
src/MEDLoader/MEDFileUtilities.cxx
+++ b/
src/MEDLoader/MEDFileUtilities.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
2
CEA/DEN, EDF R&D
+// Copyright (C) 2007-201
3
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
//
// 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
//
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// Author : Anthony Geay (CEA/DEN)
#include "MEDFileUtilities.hxx"
#include "MEDLoaderBase.hxx"
#include "MEDFileUtilities.hxx"
#include "MEDLoaderBase.hxx"
@@
-37,16
+38,19
@@
med_access_mode MEDFileUtilities::TraduceWriteMode(int medloaderwritemode) throw
}
}
}
}
-
int MEDFileUtilities::Traduce
FieldType(med_field_type ft) throw(INTERP_KERNEL::Exception)
+
const char *MEDFileUtilities::GetReadableMED
FieldType(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:
switch(ft)
{
case MED_FLOAT64:
- return
0
;
+ return
medFloat64
;
case MED_INT32:
case MED_INT32:
- return
1
;
+ return
medInt32
;
case MED_INT64:
case MED_INT64:
- return
2
;
+ return
medInt64
;
default:
throw INTERP_KERNEL::Exception("Non supported field type ! Should be FLOAT64, INT32 or INT64 !");
}
default:
throw INTERP_KERNEL::Exception("Non supported field type ! Should be FLOAT64, INT32 or INT64 !");
}