Salome HOME
Porting HOMARD SALOME module on WIN32 platform.
[modules/homard.git] / src / HOMARD_I / HOMARD_Hypothesis_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_HYPOTHESIS_I_HXX_
30 #define _HOMARD_HYPOTHESIS_I_HXX_
31
32 #include <SALOMEconfig.h>
33 #include CORBA_SERVER_HEADER(HOMARD_Gen)
34 #include CORBA_SERVER_HEADER(HOMARD_Hypothesis)
35
36 #include "HOMARD_i.hxx"
37 #include "SALOME_Component_i.hxx"
38 #include "SALOME_NamingService.hxx"
39 #include "Utils_CorbaException.hxx"
40
41 #include <string>
42
43 class HOMARD_Hypothesis;
44
45 class HOMARDENGINE_EXPORT HOMARD_Hypothesis_i:
46   public virtual Engines_Component_i,
47   public virtual POA_HOMARD::HOMARD_Hypothesis,
48   public virtual PortableServer::ServantBase
49 {
50 public:
51   HOMARD_Hypothesis_i( CORBA::ORB_ptr orb, HOMARD::HOMARD_Gen_var gen_i );
52   HOMARD_Hypothesis_i();
53
54   virtual ~HOMARD_Hypothesis_i();
55
56 // Generalites
57   void                   SetName( const char* Name );
58   char*                  GetName();
59
60   CORBA::Long            Delete();
61
62   char*                  GetDumpPython();
63
64   std::string            Dump() const;
65   bool                   Restore( const std::string& stream );
66
67 // Caracteristiques
68   void                   SetAdapRefinUnRef( CORBA::Long TypeAdap, CORBA::Long TypeRaff, CORBA::Long TypeDera );
69   HOMARD::listeTypes*    GetAdapRefinUnRef();
70   CORBA::Long            GetAdapType();
71   CORBA::Long            GetRefinType();
72   CORBA::Long            GetUnRefType();
73
74   void                   SetField( const char* FieldName );
75   char*                  GetFieldName();
76   void                   SetUseField(CORBA::Long UsField);
77   HOMARD::InfosHypo*     GetField();
78
79   void                   SetUseComp(CORBA::Long UsCmpI);
80   void                   AddComp( const char* NomComp );
81   void                   SupprComp( const char* NomComp );
82   void                   SupprComps();
83   HOMARD::listeComposantsHypo* GetComps();
84
85   void                   SetRefinThr(CORBA::Long TypeThR, CORBA::Double ThreshR);
86   CORBA::Long            GetRefinThrType();
87   void                   SetUnRefThr(CORBA::Long TypeThC, CORBA::Double ThreshC);
88   CORBA::Long            GetUnRefThrType();
89
90   void                   SetNivMax( CORBA::Long NivMax );
91   CORBA::Long            GetNivMax();
92
93   void                   SetDiamMin( CORBA::Double DiamMin );
94   CORBA::Double          GetDiamMin();
95
96   void                   SetAdapInit( CORBA::Long AdapInit );
97   CORBA::Long            GetAdapInit();
98
99   void                   SetLevelOutput( CORBA::Long LevelOutput );
100   CORBA::Long            GetLevelOutput();
101
102   void                   AddGroup( const char* Group);
103   void                   SetGroups(const HOMARD::ListGroupType& ListGroup);
104   HOMARD::ListGroupType* GetGroups();
105
106   void                   SetTypeFieldInterp( CORBA::Long TypeFieldInterp );
107   CORBA::Long            GetTypeFieldInterp();
108   void                   AddFieldInterp( const char* FieldInterp );
109   void                   AddFieldInterpType( const char* FieldInterp, CORBA::Long TypeInterp );
110   void                   SupprFieldInterp( const char* FieldInterp );
111   void                   SupprFieldInterps();
112   HOMARD::listeFieldInterpsHypo* GetFieldInterps();
113
114 // Liens avec les autres structures
115   void                   SetCaseCreation( const char* NomCaseCreation );
116   char*                  GetCaseCreation();
117
118   void                   LinkIteration( const char* NomIteration );
119   void                   UnLinkIteration( const char* NomIteration );
120   HOMARD::listeIters*    GetIterations();
121
122   void                   AddZone( const char* NomZone, CORBA::Long TypeUse );
123   void                   AddZone0( const char* NomZone, CORBA::Long TypeUse );
124   void                   SupprZone( const char* NomZone );
125   void                   SupprZones();
126   HOMARD::listeZonesHypo* GetZones();
127
128 private:
129   ::HOMARD_Hypothesis*         myHomardHypothesis;
130
131   CORBA::ORB_ptr               _orb;
132   HOMARD::HOMARD_Gen_var       _gen_i;
133 };
134
135 #endif