1 // Copyright (C) 2011-2023 CEA, EDF
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
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
27 // Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier
30 #ifndef _HOMARD_ITERATION_I_HXX_
31 #define _HOMARD_ITERATION_I_HXX_
33 #include <SALOMEconfig.h>
34 #include CORBA_SERVER_HEADER(HOMARD_Gen)
35 #include CORBA_SERVER_HEADER(HOMARD_Iteration)
37 #include "HOMARD_i.hxx"
38 #include "SALOME_Component_i.hxx"
39 #include "SALOME_NamingService.hxx"
40 #include "Utils_CorbaException.hxx"
44 class HOMARD_Iteration;
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
52 HOMARD_Iteration_i( CORBA::ORB_ptr orb,
53 HOMARD::HOMARD_Gen_var gen_i );
56 virtual ~HOMARD_Iteration_i();
59 void SetName( const char* Name );
62 CORBA::Long Delete( CORBA::Long Option );
64 char* GetDumpPython();
66 std::string Dump() const;
67 bool Restore( const std::string& stream );
70 void SetDirNameLoc( const char* NomDir );
71 char* GetDirNameLoc();
75 void SetNumber( CORBA::Long NumIter );
76 CORBA::Long GetNumber();
78 void SetState( CORBA::Long etat );
79 CORBA::Long GetState();
81 void SetMeshName( const char* NomMesh );
84 void SetMeshFile( const char* MeshFile );
87 void SetFieldFile( const char* FieldFile );
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();
103 void SetLogFile( const char* LogFile );
106 CORBA::Long Compute(CORBA::Long etatMenage, CORBA::Long Option);
108 void MeshInfo(CORBA::Long Qual, CORBA::Long Diam, CORBA::Long Conn, CORBA::Long Tail, CORBA::Long Inte);
110 void MeshInfoOption(CORBA::Long Qual, CORBA::Long Diam, CORBA::Long Conn, CORBA::Long Tail, CORBA::Long Inte, CORBA::Long Option);
112 void SetFileInfo( const char* FileInfo );
115 // Liens avec les autres iterations
116 HOMARD::HOMARD_Iteration_ptr NextIteration( const char* Name) ;
118 void LinkNextIteration( const char* NomIteration );
119 void UnLinkNextIteration( const char* NomIteration );
120 HOMARD::listeIterFilles* GetIterations();
122 void SetIterParentName( const char* NomIterParent );
123 char* GetIterParentName();
124 HOMARD::HOMARD_Iteration_ptr GetIterParent() ;
126 // Liens avec les autres structures
127 void SetCaseName( const char* NomCas );
130 void AssociateHypo( const char* NomHypo);
131 void SetHypoName( const char* NomHypo );
135 void SetInfoCompute( CORBA::Long MessInfo );
136 CORBA::Long GetInfoCompute();
139 ::HOMARD_Iteration* myHomardIteration;
142 HOMARD::HOMARD_Gen_var _gen_i;