X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHOMARD_I%2FHOMARD_Boundary_i.hxx;h=f2deceb8ca96682500e7f37b895bbaa64e3040e9;hb=refs%2Ftags%2FV9_13_0b1;hp=081753e2c03e41c49d1235ae07cb7d85256cb1db;hpb=bdbb00479184579ff9ec2e33886894326d4d6a0f;p=modules%2Fhomard.git diff --git a/src/HOMARD_I/HOMARD_Boundary_i.hxx b/src/HOMARD_I/HOMARD_Boundary_i.hxx index 081753e2..f2deceb8 100644 --- a/src/HOMARD_I/HOMARD_Boundary_i.hxx +++ b/src/HOMARD_I/HOMARD_Boundary_i.hxx @@ -1,3 +1,32 @@ +// Copyright (C) 2011-2024 CEA, EDF +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// + +// Remarques : +// L'ordre de description des fonctions est le meme dans tous les fichiers +// HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx : +// 1. Les generalites : Name, Delete, DumpPython, Dump, Restore +// 2. Les caracteristiques +// 3. Le lien avec les autres structures +// +// Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier +// + #ifndef _HOMARD_Boundary_I_HXX_ #define _HOMARD_Boundary_I_HXX_ @@ -5,60 +34,77 @@ #include CORBA_SERVER_HEADER(HOMARD_Gen) #include CORBA_SERVER_HEADER(HOMARD_Boundary) +#include "HOMARD_i.hxx" +#include "SALOME_Component_i.hxx" +#include "SALOME_NamingService.hxx" +#include "Utils_CorbaException.hxx" + #include class HOMARD_Boundary; -class HOMARD_Boundary_i: public virtual POA_HOMARD::HOMARD_Boundary, - public virtual PortableServer::ServantBase -{ +class HOMARDENGINE_EXPORT HOMARD_Boundary_i: + public virtual Engines_Component_i, + public virtual POA_HOMARD::HOMARD_Boundary, + public virtual PortableServer::ServantBase +{ public: HOMARD_Boundary_i( CORBA::ORB_ptr orb, HOMARD::HOMARD_Gen_var gen_i ); HOMARD_Boundary_i(); - + virtual ~HOMARD_Boundary_i(); - void SetName( const char* NomBoundary ); +// Generalites + void SetName( const char* Name ); char* GetName(); + + CORBA::Long Delete(); + char* GetDumpPython(); - - void SetBoundaryType( CORBA::Long BoundaryType ); - - CORBA::Long GetBoundaryType(); - void SetMeshFile( const char* MeshFile ); - char* GetMeshFile(); + std::string Dump() const; + bool Restore( const std::string& stream ); + +// Caracteristiques + void SetType( CORBA::Long Type ); + CORBA::Long GetType(); void SetMeshName( const char* MeshName ); char* GetMeshName(); - - HOMARD::double_array* GetCylinder(); + + void SetDataFile( const char* DataFile ); + char* GetDataFile(); + void SetCylinder( double Xcentre, double Ycentre, double ZCentre, double Xaxe, double Yaxe, double Zaxe, double rayon ); - - HOMARD::double_array* GetSphere(); void SetSphere( double Xcentre, double Ycentre, double ZCentre, double rayon ); - - HOMARD::double_array* GetLimit(); + void SetConeR( double Xcentre1, double Ycentre1, double Zcentre1, double Rayon1, + double Xcentre2, double Ycentre2, double Zcentre2, double Rayon2); + void SetConeA( double Xaxe, double Yaxe, double Zaxe, double Angle, + double Xcentre, double Ycentre, double ZCentre); + void SetTorus( double Xcentre, double Ycentre, double ZCentre, + double Xaxe, double Yaxe, double Zaxe, + double rayonRev, double rayonPri ); + + HOMARD::double_array* GetCoords(); + void SetLimit( double Xincr, double Yincr, double Zincr); - - - std::string Dump() const; - bool Restore( const std::string& stream ); + HOMARD::double_array* GetLimit(); + + void AddGroup( const char* Group); + void SetGroups(const HOMARD::ListGroupType& ListGroup); + HOMARD::ListGroupType* GetGroups(); +// Liens avec les autres structures void SetCaseCreation( const char* NomCaseCreation ); char* GetCaseCreation(); - void AddGroup( const char* Group); - void SetGroups(const HOMARD::ListGroupType& ListGroup); - HOMARD::ListGroupType* GetGroups(); - private: ::HOMARD_Boundary* myHomardBoundary; - + CORBA::ORB_ptr _orb; HOMARD::HOMARD_Gen_var _gen_i; };