XrdOucName2NameVec Class Reference

XrdOucName2NameVec *Name2NameVec;. More...

#include <XrdOucName2Name.hh>

List of all members.

Public Member Functions

virtual std::vector
< std::string * > * 
n2nVec (const char *lfn)=0
virtual void Recycle (std::vector< std::string * > *nvP)
 XrdOucName2NameVec ()
 Constructor and Destructor.
virtual ~XrdOucName2NameVec ()

Detailed Description

XrdOucName2NameVec *Name2NameVec;.

Class XrdOucName2NameVec must be used to define a companion name translation mechanism. It is optional but highly recommended and may in fact be required by certain statlib plug-ins specific by the 'oss.statlib' directive. Refer to plug-in documentation to see if it requires this form of name2name translator. This translator should return all possible translations of a given logical file name. After an instance of the XrdOucName2Name translator is obtained (which implies it's full initilization) the default oss plug-in check if the symbol 'Name2NameVec' is present in the shared library. If it does, it obtains the contents of the symbol which should be a pointer to an object derived from the following class. That object is used to obtain a list of possible name translations. Initialization is is simplified if your implementation inherits XrdOucName2Name as well as XrdOucName2Namevec. The symbol that contains the pointer must be defined at file level as follows: It should be set during XrdOucName2Name initialization to point to an instance of the object. The methods defined for this class must be thread-safe. The default XrdOucName2Name translator also includes the XrdOucName2NameVec translator.


Constructor & Destructor Documentation

XrdOucName2NameVec::XrdOucName2NameVec (  )  [inline]

Constructor and Destructor.

virtual XrdOucName2NameVec::~XrdOucName2NameVec (  )  [inline, virtual]

Member Function Documentation

virtual std::vector<std::string *>* XrdOucName2NameVec::n2nVec ( const char *  lfn  )  [pure virtual]

Map a logical file name to all of its possible physical file names.

Parameters:
lfn -> Logical file name.
Returns:
Success: Pointer to a vector of strings of physical file names. Failure: A nil pointer indicating that no translation exists.
virtual void XrdOucName2NameVec::Recycle ( std::vector< std::string * > *  nvP  )  [inline, virtual]

Release all storage occupied by the vector returned by n2nVec().

Parameters:
nvP -> Vector returned by n2nVec().

The documentation for this class was generated from the following file:

Generated on 26 Feb 2016 for xrootd by  doxygen 1.6.1