General KERNEL Documentation     End User KERNEL Services  


src/Container/SALOME_FileTransfer_i.hxx

Go to the documentation of this file.
00001 // Copyright (C) 2006  OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
00002 // 
00003 //  This library is free software; you can redistribute it and/or 
00004 //  modify it under the terms of the GNU Lesser General Public 
00005 //  License as published by the Free Software Foundation; either 
00006 //  version 2.1 of the License. 
00007 // 
00008 //  This library is distributed in the hope that it will be useful, 
00009 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
00010 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00011 //  Lesser General Public License for more details. 
00012 // 
00013 //  You should have received a copy of the GNU Lesser General Public 
00014 //  License along with this library; if not, write to the Free Software 
00015 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
00016 // 
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 //
00020 //
00021 //  File   : SALOME_FileTransfer_i.hxx
00022 //  Author : Paul RASCLE, EDF
00023 //  Module : SALOME
00024 //  $Header: /home/server/cvs/KERNEL/KERNEL_SRC/src/Container/SALOME_FileTransfer_i.hxx,v 1.3 2006/06/01 11:15:16 jfa Exp $
00025 
00026 
00027 #ifndef _SALOME_FILETRANSFER_I_HXX_
00028 #define _SALOME_FILETRANSFER_I_HXX_
00029 
00030 #include <SALOMEconfig.h>
00031 #include CORBA_SERVER_HEADER(SALOME_Component)
00032 #include <map>
00033 #include <cstdio>
00034 
00035 class fileTransfer_i:
00036   public virtual POA_Engines::fileTransfer,
00037   public virtual PortableServer::RefCountServantBase
00038 {
00039 public:
00040   fileTransfer_i();
00041   virtual ~fileTransfer_i();
00042 
00043   CORBA::Long open(const char* fileName);
00044 
00045   void close(CORBA::Long fileId);
00046 
00047   Engines::fileBlock* getBlock(CORBA::Long fileId);
00048 
00049 protected:
00050   int _fileKey;
00051   std::map<int, FILE*> _fileAccess;
00052   int _ctr;
00053 };
00054 
00055 #endif