Salome HOME
mise a jour pour la poursuite d'iterations
[modules/homard.git] / src / HOMARD_I / HOMARD_Cas_i.hxx
1 // Copyright (C) 2011-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 // Remarques :
20 // L'ordre de description des fonctions est le meme dans tous les fichiers
21 // HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx :
22 // 1. Les generalites : Name, Delete, DumpPython, Dump, Restore
23 // 2. Les caracteristiques
24 // 3. Le lien avec les autres structures
25 //
26 // Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier
27 //
28
29 #ifndef _HOMARD_CAS_I_HXX_
30 #define _HOMARD_CAS_I_HXX_
31
32 #include <SALOMEconfig.h>
33 #include CORBA_SERVER_HEADER(HOMARD_Gen)
34 #include CORBA_SERVER_HEADER(HOMARD_Cas)
35
36 #include "SALOME_Component_i.hxx"
37 #include "SALOME_NamingService.hxx"
38 #include "Utils_CorbaException.hxx"
39
40 #include <string>
41
42 class HOMARD_Cas;
43
44 class HOMARD_Cas_i:
45   public virtual Engines_Component_i,
46   public virtual POA_HOMARD::HOMARD_Cas,
47   public virtual PortableServer::ServantBase
48 {
49 public:
50   HOMARD_Cas_i( CORBA::ORB_ptr orb, HOMARD::HOMARD_Gen_var gen_i );
51   HOMARD_Cas_i();
52
53   virtual ~HOMARD_Cas_i();
54
55 // Generalites
56   void                   SetName( const char* Name );
57   char*                  GetName();
58
59   CORBA::Long            Delete();
60
61   char*                  GetDumpPython();
62
63   std::string            Dump() const;
64   bool                   Restore( const std::string& stream );
65
66 // Caracteristiques
67   void                   SetDirName( const char* NomDir );
68   char*                  GetDirName();
69
70   CORBA::Long            GetState();
71
72   CORBA::Long            GetNumberofIter();
73
74   void                   SetConfType( CORBA::Long ConfType );
75   CORBA::Long            GetConfType();
76
77   void                   SetBoundingBox( const HOMARD::extrema& LesExtremes );
78   HOMARD::extrema*       GetBoundingBox();
79
80   void                   AddGroup( const char* Group);
81   void                   SetGroups(const HOMARD::ListGroupType& ListGroup);
82   HOMARD::ListGroupType* GetGroups();
83
84   void                   AddBoundaryGroup( const char* Boundary, const char* Group);
85   HOMARD::ListBoundaryGroupType*  GetBoundaryGroup();
86
87   void                   SetPyram( CORBA::Long Pyram );
88   CORBA::Long            GetPyram();
89
90   void                   MeshInfo(CORBA::Long Qual, CORBA::Long Diam, CORBA::Long Conn, CORBA::Long Tail, CORBA::Long Inte);
91
92 // Liens avec les autres structures
93   char*                  GetIter0Name();
94   HOMARD::HOMARD_Iteration_ptr GetIter0() ;
95
96   HOMARD::HOMARD_Iteration_ptr  NextIteration( const char* Name ) ;
97
98   HOMARD::HOMARD_Iteration_ptr  LastIteration() ;
99
100   void                   AddIteration( const char* NomIteration );
101
102 private:
103   ::HOMARD_Cas*          myHomardCas;
104
105   CORBA::ORB_ptr         _orb;
106   HOMARD::HOMARD_Gen_var _gen_i;
107 };
108
109 #endif