X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2Ftest_HYDROData_Iterator.cxx;h=69b77c147a3cf079abc94357a60d87a4b85a0bfa;hb=c7cf59e092fe050003d1e556715e3ac97acf6bd4;hp=cb43a4b1665fedbf891b5f62151906a17b00236c;hpb=5e350d1b82873d4a8b4844d4026221635ebedf10;p=modules%2Fhydro.git diff --git a/src/HYDROData/test_HYDROData_Iterator.cxx b/src/HYDROData/test_HYDROData_Iterator.cxx index cb43a4b1..69b77c14 100644 --- a/src/HYDROData/test_HYDROData_Iterator.cxx +++ b/src/HYDROData/test_HYDROData_Iterator.cxx @@ -1,17 +1,41 @@ +// Copyright (C) 2007-2015 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 +// +// 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 +// + #include #include #include +#include + void test_HYDROData_Iterator::testOneKind() { static const QString aName1("test_name1"); static const QString aName2("test_name2"); Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1); - Handle(HYDROData_Object) anObj = aDoc->CreateObject(KIND_IMAGE); // image object + Handle(HYDROData_Entity) anObj = aDoc->CreateObject(KIND_IMAGE); // image object anObj->SetName(aName1); - // first HYDROData_Object must be destroyed because there is no hander pointer naymore + // first HYDROData_Entity must be destroyed because there is no hander pointer naymore anObj = aDoc->CreateObject(KIND_IMAGE); // second image object anObj->SetName(aName2); @@ -37,9 +61,9 @@ void test_HYDROData_Iterator::testAllKinds() static const QString aName2("test_name2"); Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1); - Handle(HYDROData_Object) anObj = aDoc->CreateObject(KIND_IMAGE); // image object + Handle(HYDROData_Entity) anObj = aDoc->CreateObject(KIND_IMAGE); // image object anObj->SetName(aName1); - // first HYDROData_Object must be destroyed because there is no hander pointer naymore + // first HYDROData_Entity must be destroyed because there is no hander pointer naymore anObj = aDoc->CreateObject(KIND_IMAGE); // second image object anObj->SetName(aName2);