Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/homard.git] / src / HOMARD / HOMARD_Iteration.hxx
1 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
2 //
3 // Copyright (C) 2011-2012  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   void                          SetName( const char* NomIter );
38   std::string                   GetName() const;
39   std::string                   GetDumpPython() const;
40
41   void                          SetEtat( bool etat );
42   bool                          GetEtat() const;
43
44   void                          SetNumber( int NumIter );
45   int                           GetNumber() const;
46
47   void                          SetMeshFile( const char* MeshFile );
48   std::string                   GetMeshFile() const;
49
50   void                          SetMeshName( const char* NomMesh );
51   std::string                   GetMeshName() const;
52
53   void                          SetFieldFile( const char* FieldFile );
54   std::string                   GetFieldFile() const;
55   void                          SetTimeStepRank( int TimeStep, int Rank );
56   int                           GetTimeStep() const;
57   int                           GetRank() const;
58
59   void                          SetIterParent( const char* iterParent );
60   std::string                   GetIterParent() const;
61
62   void                          AddIteration( const char* iter );
63   const std::list<std::string>& GetIterations() const;
64   void                          SupprIterations();
65
66   void                          SetHypoName( const char* NomHypo );
67   std::string                   GetHypoName() const;
68
69   void                          SetCaseName( const char* NomCas );
70   std::string                   GetCaseName() const;
71
72   void                          SetDirName( const char* NomDir );
73   std::string                   GetDirName() const;
74
75   void                          SetMessFile( const char* MessFile );
76   std::string                   GetMessFile() const;
77
78 private:
79   std::string                   _NomIter;
80   bool                          _Etat;
81   int                           _NumIter;
82   std::string                   _NomMesh;
83   std::string                   _MeshFile;
84   std::string                   _FieldFile;
85   int                           _TimeStep;
86   int                           _Rank;
87   std::string                   _MessFile;
88   std::string                   _IterParent;
89   std::string                   _NomHypo;
90   std::string                   _NomCas;
91   std::string                   _NomDir;
92   std::list<std::string>        _mesIterFilles;
93 };
94
95 #endif