xrootd
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Attributes | List of all members
XrdOucPinKing< T > Class Template Reference

#include <XrdOucPinKing.hh>

Collaboration diagram for XrdOucPinKing< T >:
Collaboration graph
[legend]

Classes

struct  pinInfo
 

Public Member Functions

void Add (const char *path, const char *parms, bool push=false)
 
T * Load (const char *Symbol)
 
 XrdOucPinKing (const char *drctv, XrdOucEnv &envR, XrdSysError &errR, XrdVersionInfo *vinfo=0)
 
 ~XrdOucPinKing ()
 

Private Attributes

const char * Drctv
 
XrdOucEnveInfo
 
XrdSysErroreMsg
 
XrdVersionInfo * vInfo
 
std::vector< pinInfopinVec
 

Constructor & Destructor Documentation

◆ XrdOucPinKing()

template<class T >
XrdOucPinKing< T >::XrdOucPinKing ( const char *  drctv,
XrdOucEnv envR,
XrdSysError errR,
XrdVersionInfo *  vinfo = 0 
)
inline

Constructor

Parameters
drctvRef to the directive that initiated the load. The text is used in error messages to relate the directive to the error. E.g. "sec.entlib" -> "Unable to load sec.entlib plugin...."
envRRef to environment.
errRRef to the message routing object.
vinfoPointer to the version information of the caller. If the pointer is nil, no version checking occurs.

References XrdOucPinKing< T >::pinVec.

◆ ~XrdOucPinKing()

template<class T >
XrdOucPinKing< T >::~XrdOucPinKing ( )
inline

Destructor

Upon deletion, if the plugin was successfully loaded, it is persisted.

Member Function Documentation

◆ Add()

template<class T >
void XrdOucPinKing< T >::Add ( const char *  path,
const char *  parms,
bool  push = false 
)
inline

Add an Pin object to the load list.

Parameters
pathPointer to the pin's path.
parmsPointer to the pin's parameters.
pushWhen true pushes the pin onto the load stack. Otherwise, replaces or defines the base plugin.

References XrdOucPinKing< T >::pinVec.

◆ Load()

template<class T >
T * XrdOucPinKing< T >::Load ( const char *  Symbol)

Load all necessary plugins.

Parameters
SymbolPointer to the external symobol of the plugin.
Returns
Pointer to the plugin upon success and nil upon failure.

References XrdOucPinObject< T >::getInstance().

Member Data Documentation

◆ Drctv

template<class T >
const char* XrdOucPinKing< T >::Drctv
private

◆ eInfo

template<class T >
XrdOucEnv& XrdOucPinKing< T >::eInfo
private

◆ eMsg

template<class T >
XrdSysError& XrdOucPinKing< T >::eMsg
private

◆ pinVec

template<class T >
std::vector<pinInfo> XrdOucPinKing< T >::pinVec
private

◆ vInfo

template<class T >
XrdVersionInfo* XrdOucPinKing< T >::vInfo
private

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