General KERNEL Documentation     End User KERNEL Services  


src/LifeCycleCORBA/SALOME_FileTransferCORBA.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_FileTransferCORBA.hxx
00022 //  Author : Paul RASCLE, EDF
00023 //  Module : SALOME
00024 //  $Header: /home/server/cvs/KERNEL/KERNEL_SRC/src/LifeCycleCORBA/SALOME_FileTransferCORBA.hxx,v 1.3 2006/06/01 11:15:16 jfa Exp $
00025 
00026 #ifndef _SALOME_FILETRANSFERCORBA_HXX_
00027 #define _SALOME_FILETRANSFERCORBA_HXX_
00028 
00029 
00030 #include <SALOMEconfig.h>
00031 #include <Utils_SALOME_Exception.hxx>
00032 
00033 #include CORBA_CLIENT_HEADER(SALOME_Component)
00034 
00035 #include <string>
00036 
00037 class SALOME_FileTransferCORBA
00038 {
00039 public:
00040   SALOME_FileTransferCORBA();
00041   SALOME_FileTransferCORBA(Engines::fileRef_ptr aFileRef);
00042   SALOME_FileTransferCORBA(std::string refMachine,
00043                   std::string origFileName,
00044                   std::string containerName="");
00045 
00046   virtual ~SALOME_FileTransferCORBA();
00047 
00048   std::string getLocalFile(std::string localFile = "");
00049 
00050 protected:
00051   Engines::fileRef_var _theFileRef;
00052   std::string _refMachine;
00053   std::string _origFileName;
00054   std::string _containerName;
00055 };
00056 
00057 #endif