]> SALOME platform Git repositories - modules/homard.git/blob - src/HOMARD/YACSDriver.hxx
Salome HOME
Création automatique de schémas YACS à partir d'un cas
[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_HOMARD_Init_au_debut_Case_Options( const std::string pythonCas ) ;
38   std::string Texte_HOMARD_Init_au_debut_Zone( int ZoneType, const std::string pythonZone, const std::string methode, const std::string ZoneName, const std::string noeud_1 ) ;
39   std::string Texte_HOMARD_Init_au_debut_control() ;
40   std::string Texte_control( const std::string noeud_1, const std::string noeud_2 ) ;
41   std::string Texte_inport( const std::string inport_type, const std::string inport_nom ) ;
42   void        Texte_HOMARD_Exec_DirName( ) ;
43   void        Texte_python( const std::string pythonTexte, int indice, const std::string concept ) ;
44   void        TexteParametre( const std::string node, const std::string port, const std::string type_value, const std::string value ) ;
45   void        TexteAddParametres( ) ;
46   void        CreeFichier() ;
47   //
48
49 public:
50   std::string _YACSFile;
51   std::string _DirName;
52   std::string _Texte;
53   std::string _Texte_parametres;
54   bool _bLu;
55
56 private :
57   std::string GetStringInTexte( const std::string Texte, const std::string String, int option ) ;
58 };
59
60 # endif         /* # ifndef __YACSDRIVER_H__ */