1 // SMESH SMESH_I : idl implementation based on 'SMESH' unit's classes
3 // Copyright (C) 2004 CEA
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License.
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // See http://www.salome-platform.org or email : webmaster.salome@opencascade.org
23 // File : SMESH_Group_i.hxx
24 // Author : Sergey ANIKIN, OCC
28 #ifndef SMESH_Group_i_HeaderFile
29 #define SMESH_Group_i_HeaderFile
31 #include <SALOMEconfig.h>
32 #include CORBA_SERVER_HEADER(SMESH_Group)
33 #include CORBA_SERVER_HEADER(SMESH_Mesh)
35 #include "SALOME_GenericObj_i.hh"
40 public virtual POA_SMESH::SMESH_Group,
41 public virtual SALOME::GenericObj_i
44 SMESH_Group_i( PortableServer::POA_ptr thePOA, SMESH_Mesh_i* theMeshServant, const int theLocalID );
45 virtual ~SMESH_Group_i();
47 // CORBA interface implementation
48 void SetName( const char* theName );
52 SMESH::ElementType GetType();
56 CORBA::Boolean IsEmpty();
60 CORBA::Boolean Contains( CORBA::Long theID );
62 CORBA::Long Add( const SMESH::long_array& theIDs );
64 CORBA::Long GetID( CORBA::Long theIndex );
66 SMESH::long_array* GetListOfID();
68 CORBA::Long Remove( const SMESH::long_array& theIDs );
70 SMESH::SMESH_Mesh_ptr GetMesh();
72 // Internal C++ interface
75 SMESH_Mesh_i* GetMeshServant() { return myMeshServant; }
78 SMESH_Mesh_i* myMeshServant;