#include <XrdOucPinKing.hh>
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 |
XrdOucEnv & | eInfo |
XrdSysError & | eMsg |
XrdVersionInfo * | vInfo |
std::vector< pinInfo > | pinVec |
XrdOucPinKing< T >::XrdOucPinKing | ( | const char * | drctv, | |
XrdOucEnv & | envR, | |||
XrdSysError & | errR, | |||
XrdVersionInfo * | vinfo = 0 | |||
) | [inline] |
Constructor
drctv | Ref 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...." | |
envP | Ref to environment. | |
errP | Ref to the message routing object. | |
vInfo | Pointer to the version information of the caller. If the pointer is nil, no version checking occurs. |
References XrdOucPinKing< T >::pinVec.
XrdOucPinKing< T >::~XrdOucPinKing | ( | ) | [inline] |
Destructor
Upon deletion, if the plugin was successfully loaded, it is persisted.
void XrdOucPinKing< T >::Add | ( | const char * | path, | |
const char * | parms, | |||
bool | push = false | |||
) | [inline] |
Add an Pin object to the load list.
path | Pointer to the pin's path. | |
parm | Pointer to the pin's parameters. | |
push | When true pushes the pin onto the load stack. Otherwise, replaces or defines the base plugin. |
References XrdOucPinKing< T >::pinVec.
T * XrdOucPinKing< T >::Load | ( | const char * | Symbol | ) | [inline] |
Load all necessary plugins.
Symbol | Pointer to the external symobol of the plugin. |
References XrdOucPinKing< T >::Drctv, XrdOucPinKing< T >::eInfo, XrdOucPinKing< T >::eMsg, XrdSysError::logger(), XrdOucPinKing< T >::pinVec, and XrdOucPinKing< T >::vInfo.
const char* XrdOucPinKing< T >::Drctv [private] |
Referenced by XrdOucPinKing< T >::Load().
XrdOucEnv& XrdOucPinKing< T >::eInfo [private] |
Referenced by XrdOucPinKing< T >::Load().
XrdSysError& XrdOucPinKing< T >::eMsg [private] |
Referenced by XrdOucPinKing< T >::Load().
std::vector<pinInfo> XrdOucPinKing< T >::pinVec [private] |
Referenced by XrdOucPinKing< T >::Add(), XrdOucPinKing< T >::Load(), and XrdOucPinKing< T >::XrdOucPinKing().
XrdVersionInfo* XrdOucPinKing< T >::vInfo [private] |
Referenced by XrdOucPinKing< T >::Load().