Salome HOME
version 5_1_4 HOMARD_SRC
[modules/homard.git] / src / HOMARD_I / HOMARD_Iteration_i.hxx
1 #ifndef _HOMARD_ITERATION_I_HXX_
2 #define _HOMARD_ITERATION_I_HXX_
3
4 #include <SALOMEconfig.h>
5 #include CORBA_SERVER_HEADER(HOMARD_Gen)
6 #include CORBA_SERVER_HEADER(HOMARD_Iteration)
7
8 #include <string>
9
10 class HOMARD_Iteration;
11
12 class HOMARD_Iteration_i: public virtual POA_HOMARD::HOMARD_Iteration,
13                           public virtual PortableServer::ServantBase
14
15 public:
16   HOMARD_Iteration_i( CORBA::ORB_ptr orb, HOMARD::HOMARD_Gen_var gen_i );
17   HOMARD_Iteration_i();
18   
19   virtual ~HOMARD_Iteration_i();
20
21   void                   SetName( const char* NomIteration );
22   char*                  GetName();
23   char*                  GetDumpPython();
24
25   void                   SetEtat( CORBA::Boolean etat );
26   CORBA::Boolean         GetEtat();
27
28   void                   SetNumber( CORBA::Long NumIter );
29   CORBA::Long            GetNumber();
30
31   void                   SetMeshName( const char* NomMesh );
32   char*                  GetMeshName();
33
34   void                   SetMeshFile( const char* MeshFile );
35   char*                  GetMeshFile();
36
37   void                   SetFieldFile( const char* FieldFile );
38   char*                  GetFieldFile();
39   void                   SetTimeStepRank( CORBA::Long TimeStep, CORBA::Long Rank );
40   CORBA::Long            GetTimeStep();
41   CORBA::Long            GetRank();
42
43   void                   SetMessFile( const char* MessFile );
44   char*                  GetMessFile();
45
46   void                   SetIterParent( const char* NomIterParent );
47   char*                  GetIterParent();
48
49   void                   AddIteration( const char* NomIteration );
50   HOMARD::listeIterFilles* GetIterations();
51
52   void                   SetCaseName( const char* NomCas );
53   char*                  GetCaseName();
54
55   void                   SetDirName( const char* NomDir );
56   char*                  GetDirName();
57
58   void                   SetHypoName( const char* NomHypo );
59   char*                  GetHypoName();
60
61   CORBA::Boolean         Compute();
62
63   std::string            Dump() const;
64   bool                   Restore( const std::string& stream );
65
66 private:
67   ::HOMARD_Iteration*    myHomardIteration;
68
69   CORBA::ORB_ptr         _orb;
70   HOMARD::HOMARD_Gen_var _gen_i;
71 };
72
73 #endif