Salome HOME
Transfert brutal des sources du module HOMARD
[modules/smesh.git] / src / ADAPT_I / HOMARD_Iteration_i.hxx
1 // Copyright (C) 2011-2020  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, or (at your option) any later version.
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 // Remarques :
21 // L'ordre de description des fonctions est le meme dans tous les fichiers
22 // HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx :
23 // 1. Les generalites : Name, Delete, DumpPython, Dump, Restore
24 // 2. Les caracteristiques
25 // 3. Le lien avec les autres structures
26 //
27 // Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier
28 //
29
30 #ifndef _HOMARD_ITERATION_I_HXX_
31 #define _HOMARD_ITERATION_I_HXX_
32
33 #include <SALOMEconfig.h>
34 #include CORBA_SERVER_HEADER(HOMARD_Gen)
35 #include CORBA_SERVER_HEADER(HOMARD_Iteration)
36
37 #include "HOMARD_i.hxx"
38 #include "SALOME_Component_i.hxx"
39 #include "SALOME_NamingService.hxx"
40 #include "Utils_CorbaException.hxx"
41
42 #include <string>
43
44 class HOMARD_Iteration;
45
46 class HOMARDENGINE_EXPORT HOMARD_Iteration_i:
47   public virtual Engines_Component_i,
48   public virtual POA_HOMARD::HOMARD_Iteration,
49   public virtual PortableServer::ServantBase
50 {
51 public:
52   HOMARD_Iteration_i( CORBA::ORB_ptr orb,
53                       HOMARD::HOMARD_Gen_var gen_i );
54   HOMARD_Iteration_i();
55
56   virtual ~HOMARD_Iteration_i();
57
58 // Generalites
59   void                   SetName( const char* Name );
60   char*                  GetName();
61
62   CORBA::Long            Delete( CORBA::Long Option );
63
64   char*                  GetDumpPython();
65
66   std::string            Dump() const;
67   bool                   Restore( const std::string& stream );
68
69 // Caracteristiques
70   void                   SetDirNameLoc( const char* NomDir );
71   char*                  GetDirNameLoc();
72
73   char*                  GetDirName();
74
75   void                   SetNumber( CORBA::Long NumIter );
76   CORBA::Long            GetNumber();
77
78   void                   SetState( CORBA::Long etat );
79   CORBA::Long            GetState();
80
81   void                   SetMeshName( const char* NomMesh );
82   char*                  GetMeshName();
83
84   void                   SetMeshFile( const char* MeshFile );
85   char*                  GetMeshFile();
86
87   void                   SetFieldFile( const char* FieldFile );
88   char*                  GetFieldFile();
89 // Instants pour le champ de pilotage
90   void                   SetTimeStep( CORBA::Long TimeStep );
91   void                   SetTimeStepRank( CORBA::Long TimeStep, CORBA::Long Rank );
92   void                   SetTimeStepRankLast();
93   CORBA::Long            GetTimeStep();
94   CORBA::Long            GetRank();
95 // Instants pour un champ a interpoler
96   void                   SetFieldInterpTimeStep( const char* FieldInterp, CORBA::Long TimeStep );
97   void                   SetFieldInterpTimeStepRank( const char* FieldInterp, CORBA::Long TimeStep, CORBA::Long Rank );
98   HOMARD::listeFieldInterpTSRsIter* GetFieldInterpsTimeStepRank();
99   void                   SetFieldInterp( const char* FieldInterp );
100   HOMARD::listeFieldInterpsIter* GetFieldInterps();
101   void                   SupprFieldInterps();
102
103   void                   SetLogFile( const char* LogFile );
104   char*                  GetLogFile();
105
106   CORBA::Long            Compute(CORBA::Long etatMenage, CORBA::Long Option);
107
108   void                   MeshInfo(CORBA::Long Qual, CORBA::Long Diam, CORBA::Long Conn, CORBA::Long Tail, CORBA::Long Inte);
109
110   void                   MeshInfoOption(CORBA::Long Qual, CORBA::Long Diam, CORBA::Long Conn, CORBA::Long Tail, CORBA::Long Inte, CORBA::Long Option);
111
112   void                   SetFileInfo( const char* FileInfo );
113   char*                  GetFileInfo();
114
115   // Liens avec les autres iterations
116   HOMARD::HOMARD_Iteration_ptr NextIteration( const char* Name) ;
117
118   void                   LinkNextIteration( const char* NomIteration );
119   void                   UnLinkNextIteration( const char* NomIteration );
120   HOMARD::listeIterFilles* GetIterations();
121
122   void                   SetIterParentName( const char* NomIterParent );
123   char*                  GetIterParentName();
124   HOMARD::HOMARD_Iteration_ptr GetIterParent() ;
125
126 // Liens avec les autres structures
127   void                   SetCaseName( const char* NomCas );
128   char*                  GetCaseName();
129
130   void                   AssociateHypo( const char* NomHypo);
131   void                   SetHypoName( const char* NomHypo );
132   char*                  GetHypoName();
133
134 // Divers
135   void                   SetInfoCompute( CORBA::Long MessInfo );
136   CORBA::Long            GetInfoCompute();
137
138 private:
139   ::HOMARD_Iteration*    myHomardIteration;
140
141   CORBA::ORB_ptr         _orb;
142   HOMARD::HOMARD_Gen_var _gen_i;
143 };
144
145 #endif