A class to manage file transfer in SALOME (CORBA context) More...
#include <SALOME_FileTransferCORBA.hxx>
Public Member Functions | |
| SALOME_FileTransferCORBA () | |
| Default constructor, not for use.  More... | |
| SALOME_FileTransferCORBA (Engines::fileRef_ptr aFileRef) | |
| Constructor to use when we get a fileRef CORBA object from a component.  More... | |
| SALOME_FileTransferCORBA (std::string refMachine, std::string origFileName, std::string containerName="") | |
| Constructor to use when we have the file name and machine from which to copy, plus an optional Container name on the machine.  More... | |
| virtual | ~SALOME_FileTransferCORBA () | 
| Destructor.  More... | |
| std::string | getLocalFile (std::string localFile="") | 
| Get a local copy of the reference file.  More... | |
Protected Attributes | |
| Engines::fileRef_var | _theFileRef | 
| std::string | _refMachine | 
| std::string | _origFileName | 
| std::string | _containerName | 
| SALOME_FileTransferCORBA::SALOME_FileTransferCORBA | ( | ) | 
Default constructor, not for use.
References ASSERT.
| SALOME_FileTransferCORBA::SALOME_FileTransferCORBA | ( | Engines::fileRef_ptr | aFileRef | ) | 
Constructor to use when we get a fileRef CORBA object from a component.
| aFileRef | file reference CORBA object | 
References _theFileRef, and MESSAGE.
| SALOME_FileTransferCORBA::SALOME_FileTransferCORBA | ( | std::string | refMachine, | 
| std::string | origFileName, | ||
| std::string | containerName = ""  | 
        ||
| ) | 
Constructor to use when we have the file name and machine from which to copy, plus an optional Container name on the machine.
| refMachine | the machine on which is the file to transfer | 
| origFileName | abolute file path on refMachine | 
| containerName | default container name used (FactoryServer) if empty | 
References _containerName, _origFileName, _refMachine, INFOS, and MESSAGE.
      
  | 
  virtual | 
Destructor.
References MESSAGE.
| std::string SALOME_FileTransferCORBA::getLocalFile | ( | std::string | localFile = "" | ) | 
Get a local copy of the reference file.
CORBA method
| localFile | optional absolute path to store the copy | 
References _containerName, _origFileName, _refMachine, _theFileRef, ASSERT, Engines::ContainerParameters::container_name, SALOME_LifeCycleCORBA::getContainerManager(), Kernel_Utils::GetHostname(), SALOME_LifeCycleCORBA::getResourcesManager(), Engines::ResourceParameters::hostname, INFOS, MESSAGE, Engines::ContainerParameters::mode, SALOME_LifeCycleCORBA::preSet(), Engines::ContainerParameters::resource_params, and SCRUTE.
Referenced by SALOME_LifeCycleCORBA::copyFile(), main(), LifeCycleCORBATest::testgetLocalFile_localComputer(), and LifeCycleCORBATest::testgetLocalFile_remoteComputer().
      
  | 
  protected | 
Referenced by getLocalFile(), and SALOME_FileTransferCORBA().
      
  | 
  protected | 
Referenced by getLocalFile(), and SALOME_FileTransferCORBA().
      
  | 
  protected | 
Referenced by getLocalFile(), and SALOME_FileTransferCORBA().
      
  | 
  protected | 
Referenced by getLocalFile(), and SALOME_FileTransferCORBA().