General KERNEL Documentation     End User KERNEL Services  


fileRef_i Class Reference

#include <SALOME_FileRef_i.hxx>

Inherits fileRef, and RefCountServantBase.

Inheritance diagram for fileRef_i:

Inheritance graph

Public Member Functions

 fileRef_i ()
 fileRef_i (Engines::Container_ptr container, const char *origFileName)
virtual ~fileRef_i ()
char * origFileName ()
char * refMachine ()
Engines::Container_ptr getContainer ()
CORBA::Boolean addRef (const char *machine, const char *fileName)
char * getRef (const char *machine)

Protected Attributes

Engines::Container_var _container
std::string _origFileName
std::string _machine
std::map< std::string, std::string > _copies

Constructor & Destructor Documentation

fileRef_i::fileRef_i  ) 
 

Default constructor, not for use

fileRef_i::fileRef_i Engines::Container_ptr  container,
const char *  origFileName
 

Constructor to use

fileRef_i::~fileRef_i  )  [virtual]
 

Destructor


Member Function Documentation

char * fileRef_i::origFileName  ) 
 

CORBA method:

Returns:
the file name (absolute path) on the computer which runs the container server

char * fileRef_i::refMachine  ) 
 

CORBA method:

Returns:
the hostname of the computer which runs the container server

Engines::Container_ptr fileRef_i::getContainer  ) 
 

CORBA method:

Returns:
the container reference

CORBA::Boolean fileRef_i::addRef const char *  machine,
const char *  fileName
 

CORBA method: after a file transfer on a client computer, registers hostname of client and file path of the copied file.

Parameters:
machine client hostname
fileName asolute path of the transfered file on client computer

char * fileRef_i::getRef const char *  machine  ) 
 

CORBA method: check if a copy of the file referenced by fileRef is available on the client computer.

Parameters:
machine hostname of the client computer
Returns:
path of the copy on the client computer, if the copy exists, else empty string


Field Documentation

Engines::Container_var fileRef_i::_container [protected]
 

std::string fileRef_i::_origFileName [protected]
 

std::string fileRef_i::_machine [protected]
 

std::map<std::string, std::string> fileRef_i::_copies [protected]