Back to index

salome-geom  6.5.0
GEOM_IOperations_i.hh
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 #ifndef _GEOM_IOperations_i_HeaderFile
00024 #define _GEOM_IOperations_i_HeaderFile
00025 
00026 #include "GEOMImpl_Gen.hxx"
00027 
00028 #include <SALOMEconfig.h>
00029 
00030 #include CORBA_SERVER_HEADER(GEOM_Gen)
00031 #include "SALOME_GenericObj_i.hh" 
00032 #include "GEOM_IOperations.hxx"
00033 #include "GEOM_Object_i.hh" 
00034 #include "GEOM_Object.hxx"
00035 
00036 class GEOM_I_EXPORT GEOM_IOperations_i : public virtual POA_GEOM::GEOM_IOperations, public virtual SALOME::GenericObj_i
00037 {
00038  public:
00039   GEOM_IOperations_i(PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine, ::GEOM_IOperations* theImpl);
00040   ~GEOM_IOperations_i();
00041   
00042   virtual CORBA::Boolean IsDone();
00043   
00044   virtual void SetErrorCode(const  char* theErrorCode);
00045   
00046   virtual char* GetErrorCode();
00047 
00048   virtual CORBA::Long GetStudyID();    
00049 
00050   virtual GEOM::GEOM_Object_ptr GetObject(Handle(GEOM_Object) theObject);
00051   virtual Handle(GEOM_Object) GetObjectImpl(GEOM::GEOM_Object_ptr theObject);
00052 
00053   virtual void StartOperation();
00054 
00055   virtual void FinishOperation();
00056 
00057   virtual void AbortOperation();
00058 
00059 
00060    ::GEOM_IOperations* GetImpl() { return _impl; }
00061 
00062  private:
00063  
00064   ::GEOM_IOperations* _impl;
00065   GEOM::GEOM_Gen_var _engine;     
00066 };
00067 
00068 #endif