Salome HOME
Mise à jour de la documentation
[modules/homard.git] / src / HOMARD / YACSDriver.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
22 # ifndef __YACSDRIVER_H__
23 # define __YACSDRIVER_H__
24
25 #include <iostream>
26 #include <fstream>
27
28 class YACSDriver
29 {
30 public:
31   YACSDriver(const std::string YACSFile, const std::string DirName) ;
32   ~YACSDriver() ;
33   //
34   void        TexteAdd( const std::string ligne ) ;
35   void        Texte_DataInit_MeshFile( const std::string Meshfile ) ;
36   void        Texte_Alternance_Calcul_HOMARD_Calcul( const std::string FileName ) ;
37   void        Texte_Iter_1_Case_Options( const std::string pythonCas ) ;
38   std::string Texte_Iter_1_Boundary( int BoundaryType, const std::string pythonStructure, const std::string methode, const std::string BoundaryName ) ;
39   std::string Texte_Iter_1_Zone( int ZoneType, const std::string pythonStructure, const std::string methode, const std::string ZoneName ) ;
40   std::string Texte_Iter_1_control() ;
41   std::string Texte_control( const std::string noeud_1, const std::string noeud_2 ) ;
42   std::string Texte_inport( const std::string inport_type, const std::string inport_nom ) ;
43   void        Texte_HOMARD_Exec_DirName( ) ;
44   void        Texte_HOMARD_Exec_MeshName( const std::string MeshName ) ;
45   void        Texte_python( const std::string pythonTexte, int indice, const std::string concept ) ;
46   void        TexteParametre( const std::string node, const std::string port, const std::string type_value, const std::string value ) ;
47   void        TexteAddParametres( ) ;
48   void        CreeFichier() ;
49   //
50
51 public:
52   std::string _YACSFile ;
53   std::string _DirName ;
54   std::string _Texte ;
55   std::string _Texte_parametres ;
56   std::string _noeud_1 ;
57   bool _bLu;
58
59 private :
60   std::string GetStringInTexte( const std::string Texte, const std::string String, int option ) ;
61 };
62
63 # endif         /* # ifndef __YACSDRIVER_H__ */