Salome HOME
0ecf0512d5064f6d8f423140e8da041168cbeb6e
[modules/homard.git] / src / HOMARD / HOMARD_Cas.hxx
1 //  HOMARD HOMARD : implementation of HOMARD idl descriptions
2 //
3 // Copyright (C) 2011-2013  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 // Remarques :
26 // L'ordre de description des fonctions est le meme dans tous les fichiers
27 // HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx :
28 // 1. Les generalites : Name, Delete, DumpPython, Dump, Restore
29 // 2. Les caracteristiques
30 // 3. Le lien avec les autres structures
31 //
32 // Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier
33
34 #ifndef _HOMARD_CAS_HXX_
35 #define _HOMARD_CAS_HXX_
36
37 #include <string>
38 #include <list>
39 #include <vector>
40
41 class HOMARD_Cas
42 {
43 public:
44   HOMARD_Cas();
45   ~HOMARD_Cas();
46
47 // Generalites
48   void                          SetName( const char* Name );
49   std::string                   GetName() const;
50
51   std::string                   GetDumpPython() const;
52
53 // Caracteristiques
54   int                           SetDirName( const char* NomDir );
55   std::string                   GetDirName() const;
56
57   int                           GetNumberofIter();
58
59   void                          SetConfType( int ConfType );
60   const int                     GetConfType() const;
61
62   void                          SetBoundingBox( const std::vector<double>& extremas );
63   const std::vector<double>&    GetBoundingBox() const;
64
65   void                          AddGroup( const char* Group);
66   void                          SetGroups( const std::list<std::string>& ListGroup );
67   const std::list<std::string>& GetGroups() const;
68   void                          SupprGroups();
69
70   void                          AddBoundaryGroup( const char* Boundary, const char* Group );
71   const std::list<std::string>& GetBoundaryGroup() const;
72   void                          SupprBoundaryGroup();
73
74   void                          SetPyram( int Pyram );
75   const int                     GetPyram() const;
76
77 // Liens avec les autres structures
78   std::string                   GetIter0Name() const;
79
80   void                          AddIteration( const char* NomIteration );
81   const std::list<std::string>& GetIterations() const;
82   void                          SupprIterations();
83
84 private:
85   std::string                   _Name;
86   std::string                   _NomDir;
87   int                           _ConfType;
88   int                           _Etat;
89
90   std::vector<double>           _Boite;         // cf HomardQTCommun pour structure du vecteur
91   std::list<std::string>        _ListGroup;
92   std::list<std::string>        _ListBoundaryGroup;
93
94   int                           _Pyram;
95
96   typedef std::string           IterName;
97   typedef std::list<IterName>   IterNames;
98   IterNames                     _ListIter;
99 };
100
101 #endif