]> SALOME platform Git repositories - modules/homard.git/blob - src/HOMARD/HOMARD_Cas.hxx
Salome HOME
integration of modifications from Gérald Nicolas
[modules/homard.git] / src / HOMARD / HOMARD_Cas.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_Cas.hxx
22 //  Author : Paul RASCLE, EDF
23 //  Module : HOMARD
24
25 #ifndef _HOMARD_CAS_HXX_
26 #define _HOMARD_CAS_HXX_
27
28 #include <string>
29 #include <list>
30 #include <vector>
31
32 class HOMARD_Cas
33 {
34 public:
35   HOMARD_Cas();
36   ~HOMARD_Cas();
37
38   void                          SetName( const char* Name );
39   std::string                   GetName() const;
40
41   void                          SetDirName( const char* NomDir );
42   std::string                   GetDirName() const;
43
44   void                          SetConfType( int ConfType );
45   const int                     GetConfType() const;
46   int                           GetNumber();
47
48   void                          AddIteration( const char* NomIteration );
49   const std::list<std::string>& GetIterations() const;
50   void                          SupprIterations();
51
52   std::string                   GetIter0Name() const;
53   std::string                   GetDumpPython() const;
54
55   void                          SetBoundingBox( const std::vector<double>& extremas );
56   const std::vector<double>&    GetBoundingBox() const;
57
58   void                          SetGroups( const std::list<std::string>& ListGroup );
59
60   void                          AddGroup( const char* Group);
61   const std::list<std::string>& GetGroups() const;
62   void                          SupprGroups();
63
64 //   void                          SetBoundary( const std::list<std::string>& ListBoundary );
65
66   void                          AddBoundaryGroup( const char* Boundary, const char* Group );
67   const std::list<std::string>& GetBoundaryGroup() const;
68   void                          SupprBoundaryGroup();
69
70   void                          SetPyram( int Pyram );
71   const int                     GetPyram() const;
72
73 private:
74   std::string                   _Name;
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   int                           _Pyram;
83
84   typedef std::string           IterName;
85   typedef std::list<IterName>   IterNames;
86   IterNames                     _ListIter;
87 };
88
89 #endif