X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHOMARD_I%2FHOMARD_Cas_i.hxx;h=68442939ec4b371bbaac2bff6a7db8143eacf9b5;hb=refs%2Ftags%2FV9_13_0b1;hp=fc19e9f0a9195a4f0d96ddd1dc9c0e2d91cf3042;hpb=bdbb00479184579ff9ec2e33886894326d4d6a0f;p=modules%2Fhomard.git diff --git a/src/HOMARD_I/HOMARD_Cas_i.hxx b/src/HOMARD_I/HOMARD_Cas_i.hxx index fc19e9f0..68442939 100644 --- a/src/HOMARD_I/HOMARD_Cas_i.hxx +++ b/src/HOMARD_I/HOMARD_Cas_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_CAS_I_HXX_ #define _HOMARD_CAS_I_HXX_ @@ -5,12 +34,19 @@ #include CORBA_SERVER_HEADER(HOMARD_Gen) #include CORBA_SERVER_HEADER(HOMARD_Cas) +#include "HOMARD_i.hxx" +#include "SALOME_Component_i.hxx" +#include "SALOME_NamingService.hxx" +#include "Utils_CorbaException.hxx" + #include class HOMARD_Cas; -class HOMARD_Cas_i: public virtual POA_HOMARD::HOMARD_Cas, - public virtual PortableServer::ServantBase +class HOMARDENGINE_EXPORT HOMARD_Cas_i: + public virtual Engines_Component_i, + public virtual POA_HOMARD::HOMARD_Cas, + public virtual PortableServer::ServantBase { public: HOMARD_Cas_i( CORBA::ORB_ptr orb, HOMARD::HOMARD_Gen_var gen_i ); @@ -18,33 +54,60 @@ public: virtual ~HOMARD_Cas_i(); +// Generalites + void SetName( const char* Name ); + char* GetName(); + + CORBA::Long Delete( CORBA::Long Option ); + + char* GetDumpPython(); + + std::string Dump() const; + bool Restore( const std::string& stream ); + +// Caracteristiques void SetDirName( const char* NomDir ); char* GetDirName(); - void SetName( const char* NomCas ); - char* GetName(); + CORBA::Long GetState(); + + CORBA::Long GetNumberofIter(); void SetConfType( CORBA::Long ConfType ); CORBA::Long GetConfType(); - void AddIteration( const char* NomIteration ); - char* GetIter0Name(); + void SetExtType( CORBA::Long ExtType ); + CORBA::Long GetExtType(); - HOMARD::extrema* GetBoundingBox(); void SetBoundingBox( const HOMARD::extrema& LesExtremes ); + HOMARD::extrema* GetBoundingBox(); - HOMARD::ListGroupType* GetGroups(); void AddGroup( const char* Group); void SetGroups(const HOMARD::ListGroupType& ListGroup); + HOMARD::ListGroupType* GetGroups(); + void AddBoundary(const char* Boundary); + void AddBoundaryGroup(const char* Boundary, const char* Group); HOMARD::ListBoundaryGroupType* GetBoundaryGroup(); - void AddBoundaryGroup( const char* Boundary, const char* Group); + void SupprBoundaryGroup( ); - std::string Dump() const; - bool Restore( const std::string& stream ); + void SetPyram( CORBA::Long Pyram ); + CORBA::Long GetPyram(); + + void MeshInfo(CORBA::Long Qual, CORBA::Long Diam, CORBA::Long Conn, CORBA::Long Tail, CORBA::Long Inte); + +// Liens avec les autres structures + char* GetIter0Name(); + HOMARD::HOMARD_Iteration_ptr GetIter0() ; + + HOMARD::HOMARD_Iteration_ptr NextIteration( const char* Name ) ; + + HOMARD::HOMARD_Iteration_ptr LastIteration() ; + + void AddIteration( const char* NomIteration ); - char * GetDumpPython(); - CORBA::Long GetNumber(); +// YACS + HOMARD::HOMARD_YACS_ptr CreateYACSSchema( const char* YACSName, const char* ScriptFile, const char* DirName, const char* MeshFile ); private: ::HOMARD_Cas* myHomardCas;