A class to manage file transfer in SALOME (CORBA context)
More...
|
Engines::fileRef_var | _theFileRef |
|
std::string | _refMachine |
|
std::string | _origFileName |
|
std::string | _containerName |
|
A class to manage file transfer in SALOME (CORBA context)
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
-
aFileRef | file 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
-
refMachine | the machine on which is the file to transfer |
origFileName | abolute file path on refMachine |
containerName | default container name used (FactoryServer) if empty |
SALOME_FileTransferCORBA::~SALOME_FileTransferCORBA |
( |
| ) |
|
|
virtual |
std::string SALOME_FileTransferCORBA::getLocalFile |
( |
std::string |
localFile = "" | ) |
|
Get a local copy of the reference file.
CORBA method
- Parameters
-
localFile | optional 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