Salome HOME
version 5_1_4 HOMARD_SRC
[modules/homard.git] / src / HOMARD / HOMARD_Iteration.hxx
1 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
21 //
22 //
23 //
24 //  File   : HOMARD_Iteration.hxx
25 //  Author : Paul RASCLE, EDF
26 //  Module : HOMARD
27
28 #ifndef _HOMARD_ITER_HXX_
29 #define _HOMARD_ITER_HXX_
30
31 #include <string>
32 #include <list>
33
34 class  HOMARD_Iteration
35 {
36 public:
37   HOMARD_Iteration();
38   ~HOMARD_Iteration();
39
40   bool                          Compute();
41
42   void                          SetName( const char* NomIter );
43   std::string                   GetName() const;
44   std::string                   GetDumpPython() const;
45
46   void                          SetEtat( bool etat );
47   bool                          GetEtat() const;
48
49   void                          SetNumber( int NumIter );
50   int                           GetNumber() const;
51
52   void                          SetMeshFile( const char* MeshFile );
53   std::string                   GetMeshFile() const;
54
55   void                          SetMeshName( const char* NomMesh );
56   std::string                   GetMeshName() const;
57
58   void                          SetFieldFile( const char* FieldFile );
59   std::string                   GetFieldFile() const;
60   void                          SetTimeStepRank( int TimeStep, int Rank );
61   int                           GetTimeStep() const;
62   int                           GetRank() const;
63
64   void                          SetIterParent( const char* iterParent );
65   std::string                   GetIterParent() const;
66
67   void                          AddIteration( const char* iter );
68   const std::list<std::string>& GetIterations() const;
69   void                          SupprIterations();
70
71   void                          SetHypoName( const char* NomHypo );
72   std::string                   GetHypoName() const;
73
74   void                          SetCaseName( const char* NomCas );
75   std::string                   GetCaseName() const;
76
77   void                          SetDirName( const char* NomDir );
78   std::string                   GetDirName() const;
79
80   void                          SetMessFile( const char* MessFile );
81   std::string                   GetMessFile() const;
82
83 private:
84   std::string                   _NomIter;
85   bool                          _Etat;
86   int                           _NumIter;
87   std::string                   _NomMesh;
88   std::string                   _MeshFile;
89   std::string                   _FieldFile;
90   int                           _TimeStep;
91   int                           _Rank;
92   std::string                   _MessFile;
93   std::string                   _IterParent;
94   std::string                   _NomHypo;
95   std::string                   _NomCas;
96   std::string                   _NomDir;
97   std::list<std::string>        _mesIterFilles;
98 };
99
100 #endif