Salome HOME
Updated copyright comment
[modules/kernel.git] / src / DSC / DSC_User / Datastream / Calcium / test_DataIdContainer.cxx
index 4cee34b9409d401d2aa7f9ea21f4f0141cf10b44..ea28f16e8f7a21836d7a594fa45686eba54bf764 100644 (file)
@@ -1,31 +1,32 @@
-//  Copyright (C) 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 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 
-// 
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// Copyright (C) 2007-2024  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
+//
+// 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.
 //
+// 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
 //
+
 //  File   : test_DataIdContainer.cxx
 //  Author : Eric Fayolle (EDF)
 //  Module : KERNEL
 // Modified by : $LastChangedBy$
 // Date        : $LastChangedDate: 2007-03-01 15:07:46 +0100 (jeu, 01 mar 2007) $
 // Id          : $Id$
-
+//
 #include "CalciumCouplingPolicy.hxx"
 
 #include "CalciumProvidesPort.hxx"
@@ -51,10 +52,10 @@ public:
       DataIdContainer::iterator dataIdIt = dataIds.begin();
       
       if (!dataIds.empty())
-       for (;dataIdIt != dataIds.end();++dataIdIt) {
-         std::cout << "(*dataIdIt) must be equal to given dataId parameter : " << *dataIdIt;
-         std::cout << " == " << dataId << " : " << (ret = (*dataIdIt == dataId)) << std::endl;
-       }
+        for (;dataIdIt != dataIds.end();++dataIdIt) {
+          std::cout << "(*dataIdIt) must be equal to given dataId parameter : " << *dataIdIt;
+          std::cout << " == " << dataId << " : " << (ret = (*dataIdIt == dataId)) << std::endl;
+        }
     } catch(const CalciumException & ex) {
       ret=1;
       std::cout << ex.what() << std::endl;
@@ -69,7 +70,7 @@ public:
   int ret;
   TEST2() {
 
-    // Doit filtrer le mode de dépendance temporel car le mode est 
+    //  Doit filtrer le mode de dépendance temporel car le mode est 
     //  défini itératif
     ret=0;
 
@@ -86,8 +87,8 @@ public:
 
     if (!dataIds.empty())
       for (;dataIdIt != dataIds.end();++dataIdIt) {
-       std::cout << "(*dataIdIt) must be equal to given dataId parameter : " << *dataIdIt ;
-       std::cout << " == " << DataId(0,tag) << " : " << (ret = (*dataIdIt == DataId(0,tag))) << std::endl;
+        std::cout << "(*dataIdIt) must be equal to given dataId parameter : " << *dataIdIt ;
+        std::cout << " == " << DataId(0,tag) << " : " << (ret = (*dataIdIt == DataId(0,tag))) << std::endl;
 
       }
   }
@@ -100,7 +101,7 @@ public:
 
   TEST3() {
 
-    // Doit filtrer le mode de dépendance temporel car le mode est 
+    //  Doit filtrer le mode de dépendance temporel car le mode est 
     //  défini itératif
     ret=0;
 
@@ -117,8 +118,8 @@ public:
 
     if (!dataIds.empty())
       for (;dataIdIt != dataIds.end();++dataIdIt) {
-       std::cout << "(*dataIdIt) must be equal to given dataId parameter : " << *dataIdIt ;
-       std::cout << " == " << DataId(time,0) << " : " << (ret = (*dataIdIt == DataId(time,0))) << std::endl;
+        std::cout << "(*dataIdIt) must be equal to given dataId parameter : " << *dataIdIt ;
+        std::cout << " == " << DataId(time,0) << " : " << (ret = (*dataIdIt == DataId(time,0))) << std::endl;
 
       }
   }
@@ -129,5 +130,5 @@ int main() {
   TEST2 test2;
   TEST3 test3;
   return !test1.ret+!test2.ret+!test3.ret;
-};
+}