Salome HOME
version 5_1_4 HOMARD_SRC
[modules/homard.git] / src / HOMARD / HOMARD_Cas.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_Cas.hxx
25 //  Author : Paul RASCLE, EDF
26 //  Module : HOMARD
27
28 #ifndef _HOMARD_CAS_HXX_
29 #define _HOMARD_CAS_HXX_
30
31 #include <string>
32 #include <list>
33 #include <vector>
34
35 class HOMARD_Cas
36 {
37 public:
38   HOMARD_Cas();
39   ~HOMARD_Cas();
40
41   void                          SetName( const char* NomCas );
42   std::string                   GetName() const;
43
44   void                          SetDirName( const char* NomDir );
45   std::string                   GetDirName() const;
46
47   void                          SetConfType( int ConfType );
48   const int                     GetConfType() const;
49   int                           GetNumber();
50
51   void                          AddIteration( const char* NomIteration );
52   const std::list<std::string>& GetIterations() const;
53   void                          SupprIterations();
54
55   std::string                   GetIter0Name() const;
56   std::string                   GetDumpPython() const;
57
58   void                          SetBoundingBox( const std::vector<double>& extremas );
59   const std::vector<double>&    GetBoundingBox() const;
60
61   void                          SetGroups( const std::list<std::string>& ListGroup );
62
63   void                          AddGroup( const char* Group);
64   const std::list<std::string>& GetGroups() const;
65   void                          SupprGroups();
66
67 //   void                          SetBoundary( const std::list<std::string>& ListBoundary );
68
69   void                          AddBoundaryGroup( const char* Boundary, const char* Group );
70   const std::list<std::string>& GetBoundaryGroup() const;
71   void                          SupprBoundaryGroup();
72
73 private:
74   std::string                   _NomCas;
75   std::string                   _NomDir;
76   int                           _ConfType;
77
78   std::vector<double>           _Boite;         // cf HomardQTCommun pour structure du vecteur
79   std::list<std::string>        _ListGroup;
80   std::list<std::string>        _ListBoundaryGroup;
81
82   typedef std::string           IterName;
83   typedef std::list<IterName>   IterNames;
84   IterNames                     _ListIter;
85 };
86
87 #endif