]> SALOME platform Git repositories - modules/hexablock.git/blob - src/HEXABLOCK_I/HexGroup_impl.hxx
Salome HOME
Merge from V6_main 01/04/2013
[modules/hexablock.git] / src / HEXABLOCK_I / HexGroup_impl.hxx
1 // Copyright (C) 2009-2013  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 #ifndef __HexGroup_impl__
20 #define __HexGroup_impl__
21
22 #include <SALOMEconfig.h>
23 #include CORBA_SERVER_HEADER(Group)
24 #include "SALOME_GenericObj_i.hh"
25
26 #include "hexa_base.hxx"
27 #include "HexGroup.hxx"
28
29
30 using namespace HEXABLOCK_ORB;
31 class Group_impl : public POA_HEXABLOCK_ORB::Group,
32                    public SALOME::GenericObj_i
33 {
34   public:
35     Group_impl(HEXA_NS::Group *ptrCpp);
36     HEXA_NS::Group* GetImpl() throw (SALOME::SALOME_Exception);
37
38     char* getName() throw (SALOME::SALOME_Exception);
39     void setName(const char* name) throw (SALOME::SALOME_Exception);
40     GroupKind getKind() throw (SALOME::SALOME_Exception);
41     ::CORBA::Long addElement(Element_ptr e) throw (SALOME::SALOME_Exception);
42     ::CORBA::Long countElement() throw (SALOME::SALOME_Exception);
43     Element_ptr getElement(::CORBA::Long index) throw (SALOME::SALOME_Exception);
44     ::CORBA::Long removeElement(Element_ptr elt) throw (SALOME::SALOME_Exception);
45     void clearElement() throw (SALOME::SALOME_Exception);
46
47 private:
48   HEXA_NS::Group *_group_cpp;
49 };
50
51
52 // class HexaGroup_impl : public Group_impl {};
53 // class QuadGroup_impl : public Group_impl {};
54 // class EdgeGroup_impl : public Group_impl {};
55 // class HexaNodeGroup_impl : public Group_impl {};
56 // class QuadNodeGroup_impl : public Group_impl {};
57 // class EdgeNodeGroup_impl : public Group_impl {};
58 // class VertexNodeGroup_impl : public Group_impl {};
59
60
61 #endif