1 // Copyright (C) 2011-2023 CEA, EDF
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 // L'ordre de description des fonctions est le meme dans tous les fichiers
22 // HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx :
23 // 1. Les generalites : Name, Delete, DumpPython, Dump, Restore
24 // 2. Les caracteristiques
25 // 3. Le lien avec les autres structures
27 // Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier
30 #ifndef _HOMARD_YACS_I_HXX_
31 #define _HOMARD_YACS_I_HXX_
33 #include <SALOMEconfig.h>
34 #include CORBA_SERVER_HEADER(HOMARD_Gen)
35 #include CORBA_SERVER_HEADER(HOMARD_YACS)
37 #include "HOMARD_i.hxx"
38 #include "SALOME_Component_i.hxx"
39 #include "SALOME_NamingService.hxx"
40 #include "Utils_CorbaException.hxx"
46 class HOMARDENGINE_EXPORT HOMARD_YACS_i:
47 public virtual Engines_Component_i,
48 public virtual POA_HOMARD::HOMARD_YACS,
49 public virtual PortableServer::ServantBase
52 HOMARD_YACS_i( CORBA::ORB_ptr orb,
53 HOMARD::HOMARD_Gen_var gen_i );
56 virtual ~HOMARD_YACS_i();
59 void SetName( const char* Name );
62 CORBA::Long Delete( CORBA::Long Option );
64 char* GetDumpPython();
66 std::string Dump() const;
67 bool Restore( const std::string& stream );
70 void SetType( CORBA::Long Type );
71 CORBA::Long GetType();
73 void SetMaxIter( CORBA::Long MaxIter );
74 CORBA::Long GetMaxIter();
75 void SetMaxNode( CORBA::Long MaxNode );
76 CORBA::Long GetMaxNode();
77 void SetMaxElem( CORBA::Long MaxElem );
78 CORBA::Long GetMaxElem();
80 void SetTestConvergence( CORBA::Long TypeTest, CORBA::Double VRef );
81 CORBA::Long GetTestConvergenceType();
82 CORBA::Double GetTestConvergenceVRef();
84 void SetDirName( const char* NomDir );
87 void SetMeshFile( const char* MeshFile );
90 void SetScriptFile( const char* ScriptFile );
91 char* GetScriptFile();
93 void SetXMLFile( const char* XMLFile );
97 CORBA::Long WriteOnFile( const char* XMLFile ) ;
99 // Liens avec les autres structures
100 void SetCaseName( const char* NomCas );
106 ::HOMARD_YACS* myHomardYACS;
109 HOMARD::HOMARD_Gen_var _gen_i;