SALOME documentation central

fileRef_i Class Reference

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

Copyright © 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS