]> SALOME platform Git repositories - modules/homard.git/blob - src/HOMARD_I/HOMARD_Iteration_i.hxx
Salome HOME
Merge from V6_main 11/02/2013
[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 // 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_ITERATION_I_HXX_
30 #define _HOMARD_ITERATION_I_HXX_
31
32 #include <SALOMEconfig.h>
33 #include CORBA_SERVER_HEADER(HOMARD_Gen)
34 #include CORBA_SERVER_HEADER(HOMARD_Iteration)
35
36 #include "SALOME_Component_i.hxx"
37 #include "SALOME_NamingService.hxx"
38 #include "Utils_CorbaException.hxx"
39
40 #include <string>
41
42 class HOMARD_Iteration;
43
44 class HOMARD_Iteration_i:
45   public virtual Engines_Component_i,
46   public virtual POA_HOMARD::HOMARD_Iteration,
47   public virtual PortableServer::ServantBase
48 {
49 public:
50   HOMARD_Iteration_i( CORBA::ORB_ptr orb,
51                       HOMARD::HOMARD_Gen_var gen_i );
52   HOMARD_Iteration_i();
53
54   virtual ~HOMARD_Iteration_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                   SetDirName( const char* NomDir );
69   char*                  GetDirName();
70
71   void                   SetNumber( CORBA::Long NumIter );
72   CORBA::Long            GetNumber();
73
74   void                   SetEtat( CORBA::Boolean etat );
75   CORBA::Boolean         GetEtat();
76
77   void                   SetMeshName( const char* NomMesh );
78   char*                  GetMeshName();
79
80   void                   SetMeshFile( const char* MeshFile );
81   char*                  GetMeshFile();
82
83   void                   SetFieldFile( const char* FieldFile );
84   char*                  GetFieldFile();
85   void                   SetTimeStepRank( CORBA::Long TimeStep, CORBA::Long Rank );
86   CORBA::Long            GetTimeStep();
87   CORBA::Long            GetRank();
88
89   void                   SetMessFile( const char* MessFile );
90   char*                  GetMessFile();
91
92   CORBA::Long            Compute(CORBA::Long etatMenage);
93
94 // Liens avec les autres iterations
95   HOMARD::HOMARD_Iteration_ptr NextIteration( const char* Name) ;
96
97   void                   LinkNextIteration( const char* NomIteration );
98   void                   UnLinkNextIteration( const char* NomIteration );
99   HOMARD::listeIterFilles* GetIterations();
100
101   void                   SetIterParentName( const char* NomIterParent );
102   char*                  GetIterParentName();
103   HOMARD::HOMARD_Iteration_ptr GetIterParent() ;
104
105 // Liens avec les autres structures
106   void                   SetCaseName( const char* NomCas );
107   char*                  GetCaseName();
108
109   void                   AssociateHypo( const char* NomHypo);
110   void                   SetHypoName( const char* NomHypo );
111   char*                  GetHypoName();
112
113 private:
114   ::HOMARD_Iteration*    myHomardIteration;
115
116   CORBA::ORB_ptr         _orb;
117   HOMARD::HOMARD_Gen_var _gen_i;
118 };
119
120 #endif