1 // HOMARD HOMARD : implementation of HOMARD idl descriptions
3 // Copyright (C) 2011-2013 CEA/DEN, EDF R&D
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.
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.
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
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 // File : HOMARD_YACS.cxx
22 // Author : Paul RASCLE, EDF
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
32 // Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier
34 #include "HOMARD_YACS.hxx"
35 #include "utilities.h"
37 //=============================================================================
39 * default constructor:
41 //=============================================================================
42 HOMARD_YACS::HOMARD_YACS():
50 MESSAGE("HOMARD_YACS");
52 //=============================================================================
56 //=============================================================================
57 HOMARD_YACS::~HOMARD_YACS()
59 MESSAGE("~HOMARD_YACS");
61 //=============================================================================
62 //=============================================================================
64 //=============================================================================
65 //=============================================================================
66 void HOMARD_YACS::SetName( const char* Name )
68 _Name = std::string( Name );
70 //=============================================================================
71 std::string HOMARD_YACS::GetName() const
75 //=============================================================================
76 std::string HOMARD_YACS::GetDumpPython() const
78 MESSAGE (". Ecriture du schema " << _Name );
79 std::ostringstream aScript;
80 aScript << "\n# Creation of the schema " << _Name << "\n";
81 // Le fichier du maillage initial
82 aScript << "\t" << _Name << ".SetMeshFile(\"" << _MeshFile << "\")\n";
84 // MESSAGE (". Fin de l ecriture du schema " << _Name );
88 //=============================================================================
89 //=============================================================================
91 //=============================================================================
92 //=============================================================================
93 void HOMARD_YACS::SetType( int Type )
97 //=============================================================================
98 int HOMARD_YACS::GetType() const
102 void HOMARD_YACS::SetDirName( const char* NomDir )
104 _NomDir = std::string( NomDir );
106 //=============================================================================
107 std::string HOMARD_YACS::GetDirName() const
111 //=============================================================================
112 void HOMARD_YACS::SetMeshFile( const char* MeshFile )
114 _MeshFile = std::string( MeshFile );
116 //=============================================================================
117 std::string HOMARD_YACS::GetMeshFile() const
121 //=============================================================================
122 void HOMARD_YACS::SetScriptFile( const char* ScriptFile )
124 _ScriptFile = std::string( ScriptFile );
126 //=============================================================================
127 std::string HOMARD_YACS::GetScriptFile() const
131 //=============================================================================
132 //=============================================================================
133 // Liens avec les autres structures
134 //=============================================================================
135 //=============================================================================
136 void HOMARD_YACS::SetCaseName( const char* NomCas )
138 _NomCas = std::string( NomCas );
140 //=============================================================================
141 std::string HOMARD_YACS::GetCaseName() const
145 //=============================================================================
146 //=============================================================================
148 //=============================================================================
149 //=============================================================================