Salome HOME
updated copyright message
[tools/medcoupling.git] / src / MEDLoader / MEDLoaderTraits.hxx
index 9a997436b2e1174c6379ed554e2a6386a153a0df..79280a6f6ed12f236a3d108b12056e2dfe779025 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2016-2020  CEA/DEN, EDF R&D
+// Copyright (C) 2016-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 //
 // Author : Anthony Geay (EDF R&D)
 
-#ifndef __MEDLOADERTRAITS_HXX__
-#define __MEDLOADERTRAITS_HXX__
+#pragma once
 
 #include "MEDLoaderDefines.hxx"
+#include "MCType.hxx"
 
 namespace MEDCoupling
 {
@@ -33,15 +33,19 @@ namespace MEDCoupling
 
   class MEDFileFieldMultiTS;
   class MEDFileField1TS;
-  class MEDFileIntFieldMultiTS;
-  class MEDFileIntField1TS;
+  class MEDFileInt32FieldMultiTS;
+  class MEDFileInt64FieldMultiTS;
+  class MEDFileInt32Field1TS;
+  class MEDFileInt64Field1TS;
   class MEDFileFloatFieldMultiTS;
   class MEDFileFloatField1TS;
   class MEDFileField1TSWithoutSDA;
-  class MEDFileIntField1TSWithoutSDA;
+  class MEDFileInt32Field1TSWithoutSDA;
+  class MEDFileInt64Field1TSWithoutSDA;
   class MEDFileFloatField1TSWithoutSDA;
   class MEDFileFieldMultiTSWithoutSDA;
-  class MEDFileIntFieldMultiTSWithoutSDA;
+  class MEDFileInt32FieldMultiTSWithoutSDA;
+  class MEDFileInt64FieldMultiTSWithoutSDA;
   class MEDFileFloatFieldMultiTSWithoutSDA;
   
   template<>
@@ -63,12 +67,21 @@ namespace MEDCoupling
   };
   
   template<>
-  struct MEDLOADER_EXPORT MLFieldTraits<int>
+  struct MEDLOADER_EXPORT MLFieldTraits<Int32>
   {
-    typedef MEDFileIntFieldMultiTSWithoutSDA FMTSWSDAType;
-    typedef MEDFileIntFieldMultiTS FMTSType;
-    typedef MEDFileIntField1TS F1TSType;
-    typedef MEDFileIntField1TSWithoutSDA F1TSWSDAType;
+    typedef MEDFileInt32FieldMultiTSWithoutSDA FMTSWSDAType;
+    typedef MEDFileInt32FieldMultiTS FMTSType;
+    typedef MEDFileInt32Field1TS F1TSType;
+    typedef MEDFileInt32Field1TSWithoutSDA F1TSWSDAType;
+  };
+
+  template<>
+  struct MEDLOADER_EXPORT MLFieldTraits<Int64>
+  {
+    typedef MEDFileInt64FieldMultiTSWithoutSDA FMTSWSDAType;
+    typedef MEDFileInt64FieldMultiTS FMTSType;
+    typedef MEDFileInt64Field1TS F1TSType;
+    typedef MEDFileInt64Field1TSWithoutSDA F1TSWSDAType;
   };
 
   template<class T>
@@ -98,5 +111,3 @@ namespace MEDCoupling
     static const char ClassName[];
   };
 }
-
-#endif