Salome HOME
version 5_1_4 HOMARD_SRC
[modules/homard.git] / src / HOMARD_I / HOMARD_Cas_i.hxx
1 #ifndef _HOMARD_CAS_I_HXX_
2 #define _HOMARD_CAS_I_HXX_
3
4 #include <SALOMEconfig.h>
5 #include CORBA_SERVER_HEADER(HOMARD_Gen)
6 #include CORBA_SERVER_HEADER(HOMARD_Cas)
7
8 #include <string>
9
10 class HOMARD_Cas;
11
12 class HOMARD_Cas_i: public virtual POA_HOMARD::HOMARD_Cas,
13                     public virtual PortableServer::ServantBase
14 {
15 public:
16   HOMARD_Cas_i( CORBA::ORB_ptr orb, HOMARD::HOMARD_Gen_var gen_i );
17   HOMARD_Cas_i();
18
19   virtual ~HOMARD_Cas_i();
20
21   void                   SetDirName( const char* NomDir );
22   char*                  GetDirName();
23
24   void                   SetName( const char* NomCas );
25   char*                  GetName();
26
27   void                   SetConfType( CORBA::Long ConfType );
28   CORBA::Long            GetConfType();
29
30   void                   AddIteration( const char* NomIteration );
31   char*                  GetIter0Name();
32
33   HOMARD::extrema*       GetBoundingBox();
34   void                   SetBoundingBox( const HOMARD::extrema& LesExtremes );
35
36   HOMARD::ListGroupType* GetGroups();
37   void                   AddGroup( const char* Group);
38   void                   SetGroups(const HOMARD::ListGroupType& ListGroup);
39
40   HOMARD::ListBoundaryGroupType*  GetBoundaryGroup();
41   void                   AddBoundaryGroup( const char* Boundary, const char* Group);
42
43   std::string            Dump() const;
44   bool                   Restore( const std::string& stream );
45
46   char *                 GetDumpPython();
47   CORBA::Long            GetNumber();
48
49 private:
50   ::HOMARD_Cas*          myHomardCas;
51
52   CORBA::ORB_ptr         _orb;
53   HOMARD::HOMARD_Gen_var _gen_i;
54 };
55
56 #endif