Salome HOME
Python containers are no more supported
[modules/kernel.git] / src / SALOMEDS / Test / SALOMEDSTest_AttributeTableOfString.cxx
index 72951d7d4ee5635e4ac1cf100ff7ef1482a8f222..bad234b129f783a5b0eaed261539d19e87a119a5 100755 (executable)
@@ -1,24 +1,25 @@
-//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, 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.
 //
-//  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
 //
+
 /*!
  * Check all methods of SALOMEDS_AttributeTableOfString
  * Use code of SALOMEDS_AttributeTableOfString.cxx
@@ -84,14 +85,14 @@ void SALOMEDSTest::testAttributeTableOfString()
   CPPUNIT_ASSERT(_attr->GetValue(1, 1) == "23");
 
   //Check method GetRowSetIndices
-  vector<int> rs = _attr->GetRowSetIndices(1);
+  std::vector<int> rs = _attr->GetRowSetIndices(1);
 
   CPPUNIT_ASSERT(rs.size() == 1 && rs[0] == 1);
 
   _attr->PutValue("32", 2,2);
   CPPUNIT_ASSERT(_attr->HasValue(2, 2));
 
-  vector<string> rowTitles;
+  std::vector<std::string> rowTitles;
   rowTitles.push_back("title1");
   rowTitles.push_back("title2");
 
@@ -102,12 +103,12 @@ void SALOMEDSTest::testAttributeTableOfString()
   _attr->SetRowTitle(1, "new_title");
 
   //Check method GetRowTitles
-  vector<string> rt = _attr->GetRowTitles();
+  std::vector<std::string> rt = _attr->GetRowTitles();
 
   CPPUNIT_ASSERT(rt.size() == 2 && rt[0] == "new_title" && rt[1] == "title2");
 
 
-  vector<string> colTitles;
+  std::vector<std::string> colTitles;
   colTitles.push_back("title1");
   colTitles.push_back("title2");
 
@@ -118,11 +119,11 @@ void SALOMEDSTest::testAttributeTableOfString()
   _attr->SetColumnTitle(1, "new_title");
 
   //Check method GetColumnTitles
-  vector<string> ct = _attr->GetColumnTitles();
+  std::vector<std::string> ct = _attr->GetColumnTitles();
 
   CPPUNIT_ASSERT(ct.size() == 2 && ct[0] == "new_title" && ct[1] == "title2");
 
-  vector<string> rowUnits;
+  std::vector<std::string> rowUnits;
   rowUnits.push_back("unit1");
   rowUnits.push_back("unit2");
 
@@ -133,7 +134,7 @@ void SALOMEDSTest::testAttributeTableOfString()
   _attr->SetRowUnit(1, "new_unit");
 
   //Check method GetRowUnits
-  vector<string> ru = _attr->GetRowUnits();
+  std::vector<std::string> ru = _attr->GetRowUnits();
 
   CPPUNIT_ASSERT(ru.size() == 2 && ru[0] == "new_unit" && ru[1] == "unit2");
 
@@ -141,7 +142,7 @@ void SALOMEDSTest::testAttributeTableOfString()
   CPPUNIT_ASSERT(_attr->GetNbColumns() == 2);
 
   //Check method AddRow
-  vector<string> data;
+  std::vector<std::string> data;
   data.push_back("11");
   data.push_back("22");
 
@@ -150,7 +151,7 @@ void SALOMEDSTest::testAttributeTableOfString()
   CPPUNIT_ASSERT(_attr->GetNbRows() == 3);
 
   //Check method GetRow
-  vector<string> data2 = _attr->GetRow(3);
+  std::vector<std::string> data2 = _attr->GetRow(3);
 
   CPPUNIT_ASSERT(data2.size() == 2 && data2[0] == "11" && data2[1] == "22");