General KERNEL Documentation     End User KERNEL Services  


fileTransfer_i Class Reference

#include <SALOME_FileTransfer_i.hxx>

Inherits fileTransfer, and RefCountServantBase.

Inheritance diagram for fileTransfer_i:

Inheritance graph

Public Member Functions

 fileTransfer_i ()
virtual ~fileTransfer_i ()
CORBA::Long open (const char *fileName)
void close (CORBA::Long fileId)
Engines::fileBlockgetBlock (CORBA::Long fileId)

Protected Attributes

int _fileKey
std::map< int, FILE * > _fileAccess
int _ctr

Constructor & Destructor Documentation

fileTransfer_i::fileTransfer_i  ) 
 

Default constructor,

fileTransfer_i::~fileTransfer_i  )  [virtual]
 

Destructor


Member Function Documentation

CORBA::Long fileTransfer_i::open const char *  fileName  ) 
 

CORBA method: try to open the file given. 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  ) 
 

CORBA method: close the file associated to the fileId given at open.

Parameters:
fileId got in return from open method

Engines::fileBlock * fileTransfer_i::getBlock CORBA::Long  fileId  ) 
 


Field Documentation

int fileTransfer_i::_fileKey [protected]
 

std::map<int, FILE*> fileTransfer_i::_fileAccess [protected]
 

int fileTransfer_i::_ctr [protected]