Version: 8.3.0
fileRef_i Class Reference

#include <SALOME_FileRef_i.hxx>

Inheritance diagram for fileRef_i:

Public Member Functions

 fileRef_i ()
 Default constructor, not for use. More...
 
 fileRef_i (Engines::Container_ptr container, const char *origFileName)
 Constructor to use. More...
 
virtual ~fileRef_i ()
 Destructor. More...
 
charorigFileName ()
 CORBA method: More...
 
charrefMachine ()
 CORBA method: More...
 
Engines::Container_ptr getContainer ()
 CORBA method: More...
 
CORBA::Boolean 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. More...
 
chargetRef (const char *machine)
 CORBA method: check if a copy of the file referenced by fileRef is available on the client computer. More...
 

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.

References ASSERT.

fileRef_i::fileRef_i ( Engines::Container_ptr  container,
const char origFileName 
)
fileRef_i::~fileRef_i ( )
virtual

Destructor.

References MESSAGE.

Member Function Documentation

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
machineclient hostname
fileNameasolute path of the transfered file on client computer

References _copies, INFOS, and MESSAGE.

Referenced by fileRef_i().

Engines::Container_ptr fileRef_i::getContainer ( )

CORBA method:

Returns
the container reference

References _container, and MESSAGE.

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
machinehostname of the client computer
Returns
path of the copy on the client computer, if the copy exists, else empty string

References _copies, _machine, _origFileName, and MESSAGE.

char * fileRef_i::origFileName ( )

CORBA method:

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

References _origFileName, and MESSAGE.

Referenced by fileRef_i().

char * fileRef_i::refMachine ( )

CORBA method:

Returns
the hostname of the computer which runs the container server

References _machine, and MESSAGE.

Field Documentation

Engines::Container_var fileRef_i::_container
protected

Referenced by fileRef_i(), and getContainer().

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

Referenced by addRef(), and getRef().

std::string fileRef_i::_machine
protected

Referenced by fileRef_i(), getRef(), and refMachine().

std::string fileRef_i::_origFileName
protected

Referenced by fileRef_i(), getRef(), and origFileName().