Salome HOME
updated copyright message
[modules/kernel.git] / src / DSC / DSC_User / Datastream / Calcium / CalciumTypes2CorbaTypes.cxx
index e99de9a6a24c55c16a7dda3b926d593eeca8bff4..f4c789bcf49c1955b2114f2faad119d0ab32fbe6 100644 (file)
@@ -1,40 +1,41 @@
-//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 //
-//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 //
-//  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.
+// 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, 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
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 // Modified by : $LastChangedBy$
 // Date        : $LastChangedDate: 2007-03-01 13:40:26 +0100 (Thu, 01 Mar 2007) $
 // Id          : $Id$
 //
 #include "CalciumTypes2CorbaTypes.hxx"
+#include "utilities.h"
 #include <iostream>
 
-using namespace std;
 
-CORBA_DATE_CAL_SCHEM::CORBA_DATE_CAL_SCHEM() : map<CalciumTypes::DateCalSchem,
-                                                  Ports::Calcium_Ports::DateCalSchem>()
+CORBA_DATE_CAL_SCHEM::CORBA_DATE_CAL_SCHEM() : std::map<CalciumTypes::DateCalSchem,
+                                                   Ports::Calcium_Ports::DateCalSchem>()
 {
-  map<CalciumTypes::DateCalSchem, 
+  std::map<CalciumTypes::DateCalSchem, 
     Ports::Calcium_Ports::DateCalSchem > &
-    table  = ( map<CalciumTypes::DateCalSchem, 
-              Ports::Calcium_Ports::DateCalSchem > & ) *this ;
+    table  = ( std::map<CalciumTypes::DateCalSchem, 
+               Ports::Calcium_Ports::DateCalSchem > & ) *this ;
 
 table[CalciumTypes::TI_SCHEM ] = Ports::Calcium_Ports::TI_SCHEM ;
 table[CalciumTypes::TF_SCHEM ] = Ports::Calcium_Ports::TF_SCHEM ;
@@ -44,9 +45,9 @@ table[CalciumTypes::ALPHA_SCHEM ] = Ports::Calcium_Ports::ALPHA_SCHEM ;
 
 Ports::Calcium_Ports::DateCalSchem CORBA_DATE_CAL_SCHEM::operator[]( const CalciumTypes::DateCalSchem &c ) const
 {
-  map<CalciumTypes::DateCalSchem,
-    Ports::Calcium_Ports::DateCalSchem > &table = (map<CalciumTypes::DateCalSchem,
-                                                  Ports::Calcium_Ports::DateCalSchem >&)*this ;
+  std::map<CalciumTypes::DateCalSchem,
+    Ports::Calcium_Ports::DateCalSchem > &table = (std::map<CalciumTypes::DateCalSchem,
+                                                   Ports::Calcium_Ports::DateCalSchem >&)*this ;
   assert( table.find( (CalciumTypes::DateCalSchem)c ) != table.end() ) ;
   return table[ (CalciumTypes::DateCalSchem)c ] ;
 }
@@ -55,40 +56,33 @@ const CORBA_DATE_CAL_SCHEM corbaDateCalSchem ;
 
 
 
-CORBA_DEPENDENCY_TYPE::CORBA_DEPENDENCY_TYPE() : map<CalciumTypes::DependencyType,
-                                                    Ports::Calcium_Ports::DependencyType >()
+CORBA_DEPENDENCY_TYPE::CORBA_DEPENDENCY_TYPE() : std::map<CalciumTypes::DependencyType,
+                                                     Ports::Calcium_Ports::DependencyType >()
 {
-  map<CalciumTypes::DependencyType,
+  std::map<CalciumTypes::DependencyType,
     Ports::Calcium_Ports::DependencyType > &
-    table  = ( map<CalciumTypes::DependencyType,
-              Ports::Calcium_Ports::DependencyType > & ) *this ;
-
-table[CalciumTypes::TIME_DEPENDENCY ]      = Ports::Calcium_Ports::TIME_DEPENDENCY ;
-table[CalciumTypes::ITERATION_DEPENDENCY ] = Ports::Calcium_Ports::ITERATION_DEPENDENCY ;
-table[CalciumTypes::UNDEFINED_DEPENDENCY ] = Ports::Calcium_Ports::UNDEFINED_DEPENDENCY ;
-
-
-#ifdef _DEBUG_
-std::cerr << "CORBA_DEPENDENCY_TYPE() : table["<<CalciumTypes::TIME_DEPENDENCY<<"] : "<< 
-  table[CalciumTypes::TIME_DEPENDENCY] << std::endl;
-std::cerr << "CORBA_DEPENDENCY_TYPE() : table["<<CalciumTypes::ITERATION_DEPENDENCY<<"] : "<< 
-  table[CalciumTypes::ITERATION_DEPENDENCY] << std::endl;
-std::cerr << "CORBA_DEPENDENCY_TYPE() : table["<<CalciumTypes::UNDEFINED_DEPENDENCY<<"] : "<< 
-  table[CalciumTypes::UNDEFINED_DEPENDENCY] << std::endl;
-#endif
+    table  = ( std::map<CalciumTypes::DependencyType,
+               Ports::Calcium_Ports::DependencyType > & ) *this ;
+
+  table[CalciumTypes::TIME_DEPENDENCY ]      = Ports::Calcium_Ports::TIME_DEPENDENCY ;
+  table[CalciumTypes::ITERATION_DEPENDENCY ] = Ports::Calcium_Ports::ITERATION_DEPENDENCY ;
+  table[CalciumTypes::UNDEFINED_DEPENDENCY ] = Ports::Calcium_Ports::UNDEFINED_DEPENDENCY ;
+
+
+  MESSAGE("CORBA_DEPENDENCY_TYPE() : table["<<CalciumTypes::TIME_DEPENDENCY<<"] : "<< table[CalciumTypes::TIME_DEPENDENCY]);
+  MESSAGE("CORBA_DEPENDENCY_TYPE() : table["<<CalciumTypes::ITERATION_DEPENDENCY<<"] : "<< table[CalciumTypes::ITERATION_DEPENDENCY]);
+  MESSAGE("CORBA_DEPENDENCY_TYPE() : table["<<CalciumTypes::UNDEFINED_DEPENDENCY<<"] : "<< table[CalciumTypes::UNDEFINED_DEPENDENCY]);
 }
 
 
 Ports::Calcium_Ports::DependencyType CORBA_DEPENDENCY_TYPE::operator[]( const CalciumTypes::DependencyType &c ) const
 {
-  map<CalciumTypes::DependencyType,
+  std::map<CalciumTypes::DependencyType,
     Ports::Calcium_Ports::DependencyType > &
-    table = (map<CalciumTypes::DependencyType,
-            Ports::Calcium_Ports::DependencyType >& ) *this ;
+    table = (std::map<CalciumTypes::DependencyType,
+             Ports::Calcium_Ports::DependencyType >& ) *this ;
 
-#ifdef _DEBUG_
-std::cerr << "CORBA_DEPENDENCY_TYPE() : ::operator["<<c<<"]: " << table[c] << std::endl;
-#endif
+  MESSAGE("CORBA_DEPENDENCY_TYPE() : ::operator["<<c<<"]: " << table[c]);
 
   assert( table.find( (CalciumTypes::DependencyType)c ) != table.end() ) ;
   return table[ (CalciumTypes::DependencyType)c ] ;
@@ -99,13 +93,13 @@ const CORBA_DEPENDENCY_TYPE corbaDependencyType ;
 
 
 
-CORBA_INTERPOLATION_SCHEM::CORBA_INTERPOLATION_SCHEM() : map<CalciumTypes::InterpolationSchem,
-                                                            Ports::Calcium_Ports::InterpolationSchem > () 
+CORBA_INTERPOLATION_SCHEM::CORBA_INTERPOLATION_SCHEM() : std::map<CalciumTypes::InterpolationSchem,
+                                                             Ports::Calcium_Ports::InterpolationSchem > () 
 {
-  map<CalciumTypes::InterpolationSchem,
+  std::map<CalciumTypes::InterpolationSchem,
     Ports::Calcium_Ports::InterpolationSchem > &
-    table  = ( map<CalciumTypes::InterpolationSchem,
-              Ports::Calcium_Ports::InterpolationSchem > & ) *this ;
+    table  = ( std::map<CalciumTypes::InterpolationSchem,
+               Ports::Calcium_Ports::InterpolationSchem > & ) *this ;
 
   table[CalciumTypes::L0_SCHEM ] = Ports::Calcium_Ports::L0_SCHEM ;
   table[CalciumTypes::L1_SCHEM ] = Ports::Calcium_Ports::L1_SCHEM ;
@@ -114,9 +108,9 @@ CORBA_INTERPOLATION_SCHEM::CORBA_INTERPOLATION_SCHEM() : map<CalciumTypes::Inter
 
 Ports::Calcium_Ports::InterpolationSchem CORBA_INTERPOLATION_SCHEM::operator[]( const CalciumTypes::InterpolationSchem &c ) const
 {
-  map<CalciumTypes::InterpolationSchem,
+  std::map<CalciumTypes::InterpolationSchem,
     Ports::Calcium_Ports::InterpolationSchem > &table = 
-    (map<CalciumTypes::InterpolationSchem,
+    (std::map<CalciumTypes::InterpolationSchem,
      Ports::Calcium_Ports::InterpolationSchem >& ) *this ;
 
   assert( table.find( (CalciumTypes::InterpolationSchem)c ) != table.end() ) ;
@@ -127,13 +121,13 @@ const CORBA_INTERPOLATION_SCHEM corbaInterpolationSchem ;
 
 
 
-CORBA_EXTRAPOLATION_SCHEM::CORBA_EXTRAPOLATION_SCHEM() : map<CalciumTypes::ExtrapolationSchem,
-                                                            Ports::Calcium_Ports::ExtrapolationSchem > () 
+CORBA_EXTRAPOLATION_SCHEM::CORBA_EXTRAPOLATION_SCHEM() : std::map<CalciumTypes::ExtrapolationSchem,
+                                                             Ports::Calcium_Ports::ExtrapolationSchem > () 
 {
-  map<CalciumTypes::ExtrapolationSchem,
+  std::map<CalciumTypes::ExtrapolationSchem,
     Ports::Calcium_Ports::ExtrapolationSchem > &
-    table  = ( map<CalciumTypes::ExtrapolationSchem,
-              Ports::Calcium_Ports::ExtrapolationSchem > & ) *this ;
+    table  = ( std::map<CalciumTypes::ExtrapolationSchem,
+               Ports::Calcium_Ports::ExtrapolationSchem > & ) *this ;
 
   table[CalciumTypes::E0_SCHEM ] = Ports::Calcium_Ports::E0_SCHEM ;
   table[CalciumTypes::E1_SCHEM ] = Ports::Calcium_Ports::E1_SCHEM ;
@@ -143,9 +137,9 @@ CORBA_EXTRAPOLATION_SCHEM::CORBA_EXTRAPOLATION_SCHEM() : map<CalciumTypes::Extra
 
 Ports::Calcium_Ports::ExtrapolationSchem CORBA_EXTRAPOLATION_SCHEM::operator[]( const CalciumTypes::ExtrapolationSchem &c ) const
 {
-  map<CalciumTypes::ExtrapolationSchem,
+  std::map<CalciumTypes::ExtrapolationSchem,
     Ports::Calcium_Ports::ExtrapolationSchem > &table = 
-    (map<CalciumTypes::ExtrapolationSchem,
+    (std::map<CalciumTypes::ExtrapolationSchem,
      Ports::Calcium_Ports::ExtrapolationSchem >& ) *this ;
 
   assert( table.find( (CalciumTypes::ExtrapolationSchem)c ) != table.end() ) ;