Salome HOME
version 5_1_4 HOMARD_SRC
[modules/homard.git] / src / HOMARD_I / HOMARD_Hypothesis_i.hxx
1 #ifndef _HOMARD_HYPOTHESIS_I_HXX_
2 #define _HOMARD_HYPOTHESIS_I_HXX_
3
4 #include <SALOMEconfig.h>
5 #include CORBA_SERVER_HEADER(HOMARD_Gen)
6 #include CORBA_SERVER_HEADER(HOMARD_Hypothesis)
7
8 #include <string>
9
10 class HOMARD_Hypothesis;
11
12 class HOMARD_Hypothesis_i: public virtual POA_HOMARD::HOMARD_Hypothesis,
13                            public virtual PortableServer::ServantBase
14
15 public:
16   HOMARD_Hypothesis_i( CORBA::ORB_ptr orb, HOMARD::HOMARD_Gen_var gen_i );
17   HOMARD_Hypothesis_i();
18
19   virtual ~HOMARD_Hypothesis_i();
20
21   void                         SetName( const char* NomHypothesis );
22   char*                        GetName();
23   void                         SetCaseCreation( const char* NomCaseCreation );
24   char*                        GetCaseCreation();
25   char*                        GetDumpPython();
26
27   void                         SetAdapRefinUnRef( CORBA::Long TypeAdap, CORBA::Long TypeRaff, CORBA::Long TypeDera );
28   HOMARD::listeTypes*          GetAdapRefinUnRef();
29   CORBA::Long                  GetAdapType();
30   CORBA::Long                  GetRefinType();
31   CORBA::Long                  GetUnRefType();
32
33   void                         SetField( const char* FieldName );
34   char*                        GetFieldName();
35   void                         SetRefinThr(CORBA::Long TypeThR, CORBA::Double ThreshR);
36   CORBA::Long                  GetRefinThrType();
37   void                         SetUnRefThr(CORBA::Long TypeThC, CORBA::Double ThreshC);
38   CORBA::Long                  GetUnRefThrType();
39   void                         SetUseComp(CORBA::Long UsCmpI);
40   void                         SetUseField(CORBA::Long UsField);
41   HOMARD::InfosHypo*           GetField();
42
43   void                         AddIteration( const char* NomIteration );
44   void                         AddZone( const char* NomZone );
45   void                         SupprZone( const char* NomZone );
46   void                         AddComp( const char* NomComposant );
47   void                         SupprComp();
48
49   HOMARD::listeComposantsHypo* GetListComp();
50   HOMARD::listeIters*          GetIterations();
51   HOMARD::listeZonesHypo*      GetZones();
52
53   void                         AddGroup( const char* Group);
54   void                         SetGroups(const HOMARD::ListGroupType& ListGroup);
55   HOMARD::ListGroupType*       GetGroups();
56
57   void                         SetTypeFieldInterp( CORBA::Long TypeFieldInterp );
58   CORBA::Long                  GetTypeFieldInterp();
59   void                         AddFieldInterp( const char* FieldInterp );
60   void                         SupprFieldInterp();
61   HOMARD::listFieldInterpHypo* GetListFieldInterp();
62
63
64   std::string                  Dump() const;
65   bool                         Restore( const std::string& stream );
66
67 private:
68   ::HOMARD_Hypothesis*         myHomardHypothesis;
69
70   CORBA::ORB_ptr               _orb;
71   HOMARD::HOMARD_Gen_var       _gen_i;
72 };
73
74 #endif