Salome HOME
Update copyrights
[modules/homard.git] / src / HOMARD_I / HOMARD_Iteration_i.hxx
index 91ce9fdce1b9653b7799baadc72215594579d858..441f1861ade561a78ff9e0e197c7383d41a60290 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2019  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -16,6 +16,7 @@
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 // Remarques :
 // L'ordre de description des fonctions est le meme dans tous les fichiers
 // HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx :
@@ -33,6 +34,7 @@
 #include CORBA_SERVER_HEADER(HOMARD_Gen)
 #include CORBA_SERVER_HEADER(HOMARD_Iteration)
 
+#include "HOMARD_i.hxx"
 #include "SALOME_Component_i.hxx"
 #include "SALOME_NamingService.hxx"
 #include "Utils_CorbaException.hxx"
@@ -41,7 +43,7 @@
 
 class HOMARD_Iteration;
 
-class HOMARD_Iteration_i:
+class HOMARDENGINE_EXPORT HOMARD_Iteration_i:
   public virtual Engines_Component_i,
   public virtual POA_HOMARD::HOMARD_Iteration,
   public virtual PortableServer::ServantBase
@@ -57,7 +59,7 @@ public:
   void                   SetName( const char* Name );
   char*                  GetName();
 
-  CORBA::Long            Delete();
+  CORBA::Long            Delete( CORBA::Long Option );
 
   char*                  GetDumpPython();
 
@@ -65,14 +67,16 @@ public:
   bool                   Restore( const std::string& stream );
 
 // Caracteristiques
-  void                   SetDirName( const char* NomDir );
+  void                   SetDirNameLoc( const char* NomDir );
+  char*                  GetDirNameLoc();
+
   char*                  GetDirName();
 
   void                   SetNumber( CORBA::Long NumIter );
   CORBA::Long            GetNumber();
 
-  void                   SetEtat( CORBA::Boolean etat );
-  CORBA::Boolean         GetEtat();
+  void                   SetState( CORBA::Long etat );
+  CORBA::Long            GetState();
 
   void                   SetMeshName( const char* NomMesh );
   char*                  GetMeshName();
@@ -82,17 +86,33 @@ public:
 
   void                   SetFieldFile( const char* FieldFile );
   char*                  GetFieldFile();
+// Instants pour le champ de pilotage
+  void                   SetTimeStep( CORBA::Long TimeStep );
   void                   SetTimeStepRank( CORBA::Long TimeStep, CORBA::Long Rank );
   void                   SetTimeStepRankLast();
   CORBA::Long            GetTimeStep();
   CORBA::Long            GetRank();
+// Instants pour un champ a interpoler
+  void                   SetFieldInterpTimeStep( const char* FieldInterp, CORBA::Long TimeStep );
+  void                   SetFieldInterpTimeStepRank( const char* FieldInterp, CORBA::Long TimeStep, CORBA::Long Rank );
+  HOMARD::listeFieldInterpTSRsIter* GetFieldInterpsTimeStepRank();
+  void                   SetFieldInterp( const char* FieldInterp );
+  HOMARD::listeFieldInterpsIter* GetFieldInterps();
+  void                   SupprFieldInterps();
+
+  void                   SetLogFile( const char* LogFile );
+  char*                  GetLogFile();
 
-  void                   SetMessFile( const char* MessFile );
-  char*                  GetMessFile();
+  CORBA::Long            Compute(CORBA::Long etatMenage, CORBA::Long Option);
 
-  CORBA::Long            Compute(CORBA::Long etatMenage);
+  void                   MeshInfo(CORBA::Long Qual, CORBA::Long Diam, CORBA::Long Conn, CORBA::Long Tail, CORBA::Long Inte);
 
-// Liens avec les autres iterations
+  void                   MeshInfoOption(CORBA::Long Qual, CORBA::Long Diam, CORBA::Long Conn, CORBA::Long Tail, CORBA::Long Inte, CORBA::Long Option);
+
+  void                   SetFileInfo( const char* FileInfo );
+  char*                  GetFileInfo();
+
+  // Liens avec les autres iterations
   HOMARD::HOMARD_Iteration_ptr NextIteration( const char* Name) ;
 
   void                   LinkNextIteration( const char* NomIteration );
@@ -111,6 +131,10 @@ public:
   void                   SetHypoName( const char* NomHypo );
   char*                  GetHypoName();
 
+// Divers
+  void                   SetInfoCompute( CORBA::Long MessInfo );
+  CORBA::Long            GetInfoCompute();
+
 private:
   ::HOMARD_Iteration*    myHomardIteration;