Version: 8.3.0
SALOME_FileTransferCORBA Class Reference

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
 

Detailed Description

A class to manage file transfer in SALOME (CORBA context)

Constructor & Destructor Documentation

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.

Parameters
aFileReffile 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.

Parameters
refMachinethe machine on which is the file to transfer
origFileNameabolute file path on refMachine
containerNamedefault container name used (FactoryServer) if empty

References _containerName, _origFileName, _refMachine, INFOS, and MESSAGE.

SALOME_FileTransferCORBA::~SALOME_FileTransferCORBA ( )
virtual

Destructor.

References MESSAGE.

Member Function Documentation

std::string SALOME_FileTransferCORBA::getLocalFile ( std::string  localFile = "")

Field Documentation

std::string SALOME_FileTransferCORBA::_containerName
protected
std::string SALOME_FileTransferCORBA::_origFileName
protected
std::string SALOME_FileTransferCORBA::_refMachine
protected
Engines::fileRef_var SALOME_FileTransferCORBA::_theFileRef
protected