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