A class to manage file transfer in SALOME. More...
#include <SALOME_FileTransfer_i.hxx>

Public Member Functions | |
| fileTransfer_i () | |
| Default constructor,.  More... | |
| virtual | ~fileTransfer_i () | 
| Destructor.  More... | |
| CORBA::Long | open (const char *fileName) | 
| open the given file  More... | |
| void | close (CORBA::Long fileId) | 
| close a file  More... | |
| Engines::fileBlock * | getBlock (CORBA::Long fileId) | 
| get a data block from a file  More... | |
| CORBA::Long | openW (const char *fileName) | 
| open the given file in write mode (for copy)  More... | |
| void | putBlock (CORBA::Long fileId, const Engines::fileBlock &block) | 
| put a data block for copy into a file  More... | |
| virtual PortableServer::POA_ptr | _default_POA () | 
| Get default POA for the servant object.  More... | |
| virtual void | Register () | 
| Increment reference counter.  More... | |
| virtual void | UnRegister () | 
| Decrement reference counter.  More... | |
| virtual void | Destroy () | 
| Decrement reference counter.  More... | |
Protected Attributes | |
| int | _fileKey | 
| std::map< int, FILE * > | _fileAccess | 
| int | _ctr | 
| PortableServer::POA_var | myPOA | 
| int | myRefCounter | 
      
  | 
  virtual | 
Destructor.
References MESSAGE.
      
  | 
  virtualinherited | 
Get default POA for the servant object.
This function is implicitly called from "_this()" function. Default POA can be set via the constructor.
References SALOME::GenericObj_i::myPOA.
| void fileTransfer_i::close | ( | CORBA::Long | fileId | ) | 
close a file
CORBA method: close the file associated to the fileId given at open.
| fileId | got in return from open method | 
References _fileAccess, INFOS, and MESSAGE.
      
  | 
  virtualinherited | 
Decrement reference counter.
References MESSAGE, and SALOME::GenericObj_i::UnRegister().
| Engines::fileBlock * fileTransfer_i::getBlock | ( | CORBA::Long | fileId | ) | 
get a data block from a file
CORBA method: get a block of data from the file associated to the fileId given at open.
| fileId | got in return from open method | 
References _fileAccess, FILEBLOCK_SIZE, and INFOS.
| 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;
| fileName | path to the file to be transfered | 
References _ctr, _fileAccess, _fileKey, INFOS, and MESSAGE.
| 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;
| fileName | path to the file to be transfered | 
References _ctr, _fileAccess, _fileKey, INFOS, and MESSAGE.
| void fileTransfer_i::putBlock | ( | CORBA::Long | fileId, | 
| const Engines::fileBlock & | block | ||
| ) | 
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.
| fileId | got in return from openW method | 
| block | an octet sequence to copy into opened file | 
References _fileAccess, INFOS, MESSAGE, and SCRUTE.
      
  | 
  virtualinherited | 
Increment reference counter.
References IS_OBJ_IN_QUESTION, MESSAGE, MYDEBUG, and SALOME::GenericObj_i::myRefCounter.
      
  | 
  virtualinherited | 
Decrement reference counter.
As soon as reference counter goes to zero, the object is automatically deactivated.
References IS_OBJ_IN_QUESTION, MESSAGE, MYDEBUG, SALOME::GenericObj_i::myPOA, and SALOME::GenericObj_i::myRefCounter.
Referenced by SALOME::GenericObj_i::Destroy().
      
  | 
  protected | 
Referenced by close(), getBlock(), open(), openW(), and putBlock().
      
  | 
  protected | 
Referenced by fileTransfer_i(), open(), and openW().
      
  | 
  protectedinherited | 
      
  | 
  protectedinherited | 
Referenced by SALOME::GenericObj_i::Register(), and SALOME::GenericObj_i::UnRegister().