XRootD
XrdCmsRouter Class Reference

#include <XrdCmsRouting.hh>

+ Collaboration diagram for XrdCmsRouter:

Classes

struct  theRoute
 

Public Types

typedef const char *(XrdCmsNode::* NodeMethod_t) (XrdCmsRRData &)
 

Public Member Functions

 XrdCmsRouter (theRoute *initP)
 
 ~XrdCmsRouter ()
 
NodeMethod_t getMethod (int Code)
 
const char * getName (int Code)
 

Detailed Description

Definition at line 74 of file XrdCmsRouting.hh.


Class Documentation

◆ XrdCmsRouter::theRoute

struct XrdCmsRouter::theRoute

Definition at line 80 of file XrdCmsRouting.hh.

+ Collaboration diagram for XrdCmsRouter::theRoute:
Class Members
int reqCode
NodeMethod_t reqMeth
const char * reqName

Member Typedef Documentation

◆ NodeMethod_t

typedef const char*(XrdCmsNode::* XrdCmsRouter::NodeMethod_t) (XrdCmsRRData &)

Definition at line 78 of file XrdCmsRouting.hh.

Constructor & Destructor Documentation

◆ XrdCmsRouter()

XrdCmsRouter::XrdCmsRouter ( theRoute initP)
inline

Definition at line 92 of file XrdCmsRouting.hh.

93  {memset(methVec, 0, sizeof(methVec));
94  do {nameVec[initP->reqCode] = initP->reqName;
95  methVec[initP->reqCode] = initP->reqMeth;
96  } while((++initP)->reqCode);
97  }

References XrdCmsRouter::theRoute::reqCode, XrdCmsRouter::theRoute::reqMeth, and XrdCmsRouter::theRoute::reqName.

◆ ~XrdCmsRouter()

XrdCmsRouter::~XrdCmsRouter ( )
inline

Definition at line 98 of file XrdCmsRouting.hh.

98 {}

Member Function Documentation

◆ getMethod()

NodeMethod_t XrdCmsRouter::getMethod ( int  Code)
inline

Definition at line 82 of file XrdCmsRouting.hh.

83  {return Code < XrdCms::kYR_MaxReq
84  ? methVec[Code] : (NodeMethod_t)0;
85  }
const char *(XrdCmsNode::* NodeMethod_t)(XrdCmsRRData &)
@ kYR_MaxReq
Definition: YProtocol.hh:118

References XrdCms::kYR_MaxReq.

Referenced by XrdCmsProtocol::Execute().

+ Here is the caller graph for this function:

◆ getName()

const char* XrdCmsRouter::getName ( int  Code)
inline

Definition at line 87 of file XrdCmsRouting.hh.

88  {return Code < XrdCms::kYR_MaxReq && nameVec[Code]
89  ? nameVec[Code] : "?";
90  }

References XrdCms::kYR_MaxReq.

Referenced by XrdCmsManager::Inform().

+ Here is the caller graph for this function:

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