Salome HOME
38cd3273761675a1968eb120e63731f094c36bbb
[modules/homard.git] / src / HOMARD_I / HOMARD_Hypothesis_i.hxx
1 // Copyright (C) 2011-2022  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, or (at your option) any later version.
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
20 // Remarques :
21 // L'ordre de description des fonctions est le meme dans tous les fichiers
22 // HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx :
23 // 1. Les generalites : Name, Delete, DumpPython, Dump, Restore
24 // 2. Les caracteristiques
25 // 3. Le lien avec les autres structures
26 //
27 // Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier
28 //
29
30 #ifndef _HOMARD_HYPOTHESIS_I_HXX_
31 #define _HOMARD_HYPOTHESIS_I_HXX_
32
33 #include <SALOMEconfig.h>
34 #include CORBA_SERVER_HEADER(HOMARD_Gen)
35 #include CORBA_SERVER_HEADER(HOMARD_Hypothesis)
36
37 #include "HOMARD_i.hxx"
38 #include "SALOME_Component_i.hxx"
39 #include "SALOME_NamingService.hxx"
40 #include "Utils_CorbaException.hxx"
41
42 #include <string>
43
44 class HOMARD_Hypothesis;
45
46 class HOMARDENGINE_EXPORT HOMARD_Hypothesis_i:
47   public virtual Engines_Component_i,
48   public virtual POA_HOMARD::HOMARD_Hypothesis,
49   public virtual PortableServer::ServantBase
50 {
51 public:
52   HOMARD_Hypothesis_i( CORBA::ORB_ptr orb, HOMARD::HOMARD_Gen_var gen_i );
53   HOMARD_Hypothesis_i();
54
55   virtual ~HOMARD_Hypothesis_i();
56
57 // Generalites
58   void                   SetName( const char* Name );
59   char*                  GetName();
60
61   CORBA::Long            Delete();
62
63   char*                  GetDumpPython();
64
65   std::string            Dump() const;
66   bool                   Restore( const std::string& stream );
67
68 // Caracteristiques
69   void                   SetUnifRefinUnRef( CORBA::Long TypeRaffDera );
70   HOMARD::listeTypes*    GetAdapRefinUnRef();
71   CORBA::Long            GetAdapType();
72   CORBA::Long            GetRefinType();
73   CORBA::Long            GetUnRefType();
74
75   void                   SetField( const char* FieldName );
76   char*                  GetFieldName();
77   void                   SetUseField(CORBA::Long UsField);
78   HOMARD::InfosHypo*     GetField();
79
80   void                   SetUseComp(CORBA::Long UsCmpI);
81   void                   AddComp( const char* NomComp );
82   void                   SupprComp( const char* NomComp );
83   void                   SupprComps();
84   HOMARD::listeComposantsHypo* GetComps();
85
86   void                   SetRefinThr(CORBA::Long TypeThR, CORBA::Double ThreshR);
87   CORBA::Long            GetRefinThrType();
88   void                   SetUnRefThr(CORBA::Long TypeThC, CORBA::Double ThreshC);
89   CORBA::Long            GetUnRefThrType();
90
91   void                   SetNivMax( CORBA::Long NivMax );
92   CORBA::Long            GetNivMax();
93
94   void                   SetDiamMin( CORBA::Double DiamMin );
95   CORBA::Double          GetDiamMin();
96
97   void                   SetAdapInit( CORBA::Long AdapInit );
98   CORBA::Long            GetAdapInit();
99
100   void                   SetExtraOutput( CORBA::Long ExtraOutput );
101   CORBA::Long            GetExtraOutput();
102
103   void                   AddGroup( const char* Group);
104   void                   SupprGroup( const char* Group );
105   void                   SupprGroups();
106   void                   SetGroups(const HOMARD::ListGroupType& ListGroup);
107   HOMARD::ListGroupType* GetGroups();
108
109   void                   SetTypeFieldInterp( CORBA::Long TypeFieldInterp );
110   CORBA::Long            GetTypeFieldInterp();
111   void                   AddFieldInterp( const char* FieldInterp );
112   void                   AddFieldInterpType( const char* FieldInterp, CORBA::Long TypeInterp );
113   void                   SupprFieldInterp( const char* FieldInterp );
114   void                   SupprFieldInterps();
115   HOMARD::listeFieldInterpsHypo* GetFieldInterps();
116
117 // Liens avec les autres structures
118   void                   SetCaseCreation( const char* NomCaseCreation );
119   char*                  GetCaseCreation();
120
121   void                   LinkIteration( const char* NomIteration );
122   void                   UnLinkIteration( const char* NomIteration );
123   HOMARD::listeIters*    GetIterations();
124
125   void                   AddZone( const char* NomZone, CORBA::Long TypeUse );
126   void                   AddZone0( const char* NomZone, CORBA::Long TypeUse );
127   void                   SupprZone( const char* NomZone );
128   void                   SupprZones();
129   HOMARD::listeZonesHypo* GetZones();
130
131 private:
132   ::HOMARD_Hypothesis*         myHomardHypothesis;
133
134   CORBA::ORB_ptr               _orb;
135   HOMARD::HOMARD_Gen_var       _gen_i;
136 };
137
138 #endif