A class to manage file transfer in SALOME.
More...
|
int | _fileKey |
|
std::map< int, FILE * > | _fileAccess |
|
int | _ctr |
|
A class to manage file transfer in SALOME.
fileTransfer_i::fileTransfer_i |
( |
| ) |
|
fileTransfer_i::~fileTransfer_i |
( |
| ) |
|
|
virtual |
CORBA::Long fileTransfer_i::open |
( |
const char * |
fileName | ) |
|
open the given file
CORBA method: try to open the file. If the file is readable, return a positive integer else return 0;
- Parameters
-
fileName | path to the file to be transfered |
- Returns
- fileId = positive integer > 0 if open OK.
void fileTransfer_i::close |
( |
CORBA::Long |
fileId | ) |
|
close a file
CORBA method: close the file associated to the fileId given at open.
- Parameters
-
fileId | got in return from open method |
get a data block from a file
CORBA method: get a block of data from the file associated to the fileId given at open.
- Parameters
-
fileId | got in return from open method |
- Returns
- an octet sequence. Last one is empty.
CORBA::Long fileTransfer_i::openW |
( |
const char * |
fileName | ) |
|
open the given file in write mode (for copy)
CORBA method: try to open the file. If the file is writable, return a positive integer else return 0;
- Parameters
-
fileName | path to the file to be transfered |
- Returns
- fileId = positive integer > 0 if open OK.
put a data block for copy into a file
CORBA method: put a block of data into the file associated to the fileId given at openW.
- Parameters
-
fileId | got in return from openW method |
block | an octet sequence to copy into opened file |