XRootD
XrdNetPMark::Handle Class Reference

#include <XrdNetPMark.hh>

+ Inheritance diagram for XrdNetPMark::Handle:
+ Collaboration diagram for XrdNetPMark::Handle:

Public Member Functions

 Handle (const char *app=0, int ecode=0, int acode=0)
 
 Handle (Handle &h)
 
virtual ~Handle ()
 
bool getEA (int &ec, int &ac)
 
bool Valid ()
 

Protected Attributes

int aCode
 
const char * appName
 
int eCode
 

Detailed Description

Definition at line 42 of file XrdNetPMark.hh.

Constructor & Destructor Documentation

◆ Handle() [1/2]

XrdNetPMark::Handle::Handle ( const char *  app = 0,
int  ecode = 0,
int  acode = 0 
)
inline

Definition at line 52 of file XrdNetPMark.hh.

53  : appName(app), eCode(ecode), aCode(acode) {}
const char * appName
Definition: XrdNetPMark.hh:58

◆ Handle() [2/2]

XrdNetPMark::Handle::Handle ( Handle h)
inline

Definition at line 55 of file XrdNetPMark.hh.

56  : appName(h.appName), eCode(h.eCode), aCode(h.aCode) {};

◆ ~Handle()

virtual XrdNetPMark::Handle::~Handle ( )
inlinevirtual

Definition at line 58 of file XrdNetPMark.hh.

58 {};

Member Function Documentation

◆ getEA()

bool XrdNetPMark::Handle::getEA ( int &  ec,
int &  ac 
)
inline

Definition at line 45 of file XrdNetPMark.hh.

46  {if (Valid()) {ec = eCode; ac = aCode; return true;}
47  ec = ac = 0; return false;
48  }

References aCode, ec, eCode, and Valid().

+ Here is the call graph for this function:

◆ Valid()

bool XrdNetPMark::Handle::Valid ( )
inline

Definition at line 50 of file XrdNetPMark.hh.

50 {return (eCode == 0 && aCode == 0) || (eCode >= minExpID && eCode <= maxExpID && aCode >= minActID && aCode <= maxActID);}
static const int minActID
Definition: XrdNetPMark.hh:91
static const int maxActID
Definition: XrdNetPMark.hh:93
static const int minExpID
Definition: XrdNetPMark.hh:90

References aCode, eCode, XrdNetPMark::maxActID, XrdNetPMark::minActID, and XrdNetPMark::minExpID.

Referenced by XrdNetPMarkCfg::Begin(), and getEA().

+ Here is the caller graph for this function:

Member Data Documentation

◆ aCode

int XrdNetPMark::Handle::aCode
protected

Definition at line 63 of file XrdNetPMark.hh.

Referenced by getEA(), and Valid().

◆ appName

const char* XrdNetPMark::Handle::appName
protected

Definition at line 61 of file XrdNetPMark.hh.

◆ eCode

int XrdNetPMark::Handle::eCode
protected

Definition at line 62 of file XrdNetPMark.hh.

Referenced by getEA(), and Valid().


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