Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/homard.git] / src / HOMARD_I / HOMARD_Iteration_i.hxx
1 // Copyright (C) 2011-2012  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
20 #ifndef _HOMARD_ITERATION_I_HXX_
21 #define _HOMARD_ITERATION_I_HXX_
22
23 #include <SALOMEconfig.h>
24 #include CORBA_SERVER_HEADER(HOMARD_Gen)
25 #include CORBA_SERVER_HEADER(HOMARD_Iteration)
26
27 #include "SALOME_Component_i.hxx"
28 #include "SALOME_NamingService.hxx"
29 #include "Utils_CorbaException.hxx"
30
31 #include <string>
32
33 class HOMARD_Iteration;
34
35 class HOMARD_Iteration_i:
36   public virtual Engines_Component_i,
37   public virtual POA_HOMARD::HOMARD_Iteration,
38   public virtual PortableServer::ServantBase
39 {
40 public:
41   HOMARD_Iteration_i( CORBA::ORB_ptr orb,
42                       HOMARD::HOMARD_Gen_var gen_i );
43   HOMARD_Iteration_i();
44
45   virtual ~HOMARD_Iteration_i();
46
47   void                   SetName( const char* NomIteration );
48   char*                  GetName();
49   char*                  GetDumpPython();
50
51   void                   SetEtat( CORBA::Boolean etat );
52   CORBA::Boolean         GetEtat();
53
54   void                   SetNumber( CORBA::Long NumIter );
55   CORBA::Long            GetNumber();
56
57   void                   SetMeshName( const char* NomMesh );
58   char*                  GetMeshName();
59
60   void                   SetMeshFile( const char* MeshFile );
61   char*                  GetMeshFile();
62
63   void                   SetFieldFile( const char* FieldFile );
64   char*                  GetFieldFile();
65   void                   SetTimeStepRank( CORBA::Long TimeStep, CORBA::Long Rank );
66   CORBA::Long            GetTimeStep();
67   CORBA::Long            GetRank();
68
69   void                   SetMessFile( const char* MessFile );
70   char*                  GetMessFile();
71
72   void                   SetIterParent( const char* NomIterParent );
73   char*                  GetIterParent();
74
75   void                   AddIteration( const char* NomIteration );
76   HOMARD::listeIterFilles* GetIterations();
77
78   void                   SetCaseName( const char* NomCas );
79   char*                  GetCaseName();
80
81   void                   SetDirName( const char* NomDir );
82   char*                  GetDirName();
83
84   void                   SetHypoName( const char* NomHypo );
85   char*                  GetHypoName();
86
87   CORBA::Long            Compute(CORBA::Long etatMenage);
88
89   std::string            Dump() const;
90   bool                   Restore( const std::string& stream );
91
92 private:
93   ::HOMARD_Iteration*    myHomardIteration;
94
95   CORBA::ORB_ptr         _orb;
96   HOMARD::HOMARD_Gen_var _gen_i;
97 };
98
99 #endif