Version: 8.3.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
SALOME_FileTransferCORBA Class Reference

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

Public Member Functions

 SALOME_FileTransferCORBA ()
 
 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 ()
 
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.

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
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
SALOME_FileTransferCORBA::~SALOME_FileTransferCORBA ( )
virtual

Destructor

Member Function Documentation

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

Get a local copy of the reference file.

CORBA method

Parameters
localFileoptional absolute path to store the copy
Returns
the file name (absolute path) of the copy, may be different from localFile parameter if the copy was already done before the call