Salome HOME
a22dc36a41ffb3d00c73eecfbe5df8b34375abf3
[modules/homard.git] / src / HOMARD / HOMARD_Cas.hxx
1 //  HOMARD HOMARD : implementation of HOMARD idl descriptions
2 //
3 // Copyright (C) 2011-2019  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, or (at your option) any later version.
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 : Gerald NICOLAS, 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 "HOMARD.hxx"
38
39 #include <string>
40 #include <list>
41 #include <vector>
42
43 #if defined WIN32
44 #pragma warning ( disable: 4251 )
45 #endif
46
47 class HOMARDIMPL_EXPORT HOMARD_Cas
48 {
49 public:
50   HOMARD_Cas();
51   ~HOMARD_Cas();
52
53 // Generalites
54   void                          SetName( const char* Name );
55   std::string                   GetName() const;
56
57   std::string                   GetDumpPython() const;
58
59 // Caracteristiques
60   int                           SetDirName( const char* NomDir );
61   std::string                   GetDirName() const;
62
63   int                           GetNumberofIter();
64
65   void                          SetConfType( int ConfType );
66   const int                     GetConfType() const;
67
68   void                          SetExtType( int ExtType );
69   const int                     GetExtType() const;
70
71   void                          SetBoundingBox( const std::vector<double>& extremas );
72   const std::vector<double>&    GetBoundingBox() const;
73
74   void                          AddGroup( const char* Group);
75   void                          SetGroups( const std::list<std::string>& ListGroup );
76   const std::list<std::string>& GetGroups() const;
77   void                          SupprGroups();
78
79   void                          AddBoundary( const char* Boundary );
80   void                          AddBoundaryGroup( const char* Boundary, const char* Group );
81   const std::list<std::string>& GetBoundaryGroup() const;
82   void                          SupprBoundaryGroup();
83
84   void                          SetPyram( int Pyram );
85   const int                     GetPyram() const;
86
87 // Liens avec les autres structures
88   std::string                   GetIter0Name() const;
89
90   void                          AddIteration( const char* NomIteration );
91   const std::list<std::string>& GetIterations() const;
92   void                          SupprIterations();
93
94 private:
95   std::string                   _Name;
96   std::string                   _NomDir;
97   int                           _ConfType;
98   int                           _ExtType;
99   int                           _Etat;
100
101   std::vector<double>           _Boite;         // cf HomardQTCommun pour structure du vecteur
102   std::list<std::string>        _ListGroup;
103   std::list<std::string>        _ListBoundaryGroup;
104
105   int                           _Pyram;
106
107   typedef std::string           IterName;
108   typedef std::list<IterName>   IterNames;
109   IterNames                     _ListIter;
110 };
111
112 #endif