Version: 6.3.1

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.
 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.
virtual ~SALOME_FileTransferCORBA ()
std::string getLocalFile (std::string localFile="")
 Get a local copy of the reference file.

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
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS