XRootD
Loading...
Searching...
No Matches
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
char * appName
int eCode

Detailed Description

Definition at line 44 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 56 of file XrdNetPMark.hh.

57 : appName(strdup(app ? app : "unknown")),
58 eCode(ecode), aCode(acode) {}

References aCode, appName, and eCode.

Referenced by Handle(), and XrdNetPMarkFF::XrdNetPMarkFF().

Here is the caller graph for this function:

◆ Handle() [2/2]

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

Definition at line 60 of file XrdNetPMark.hh.

61 : appName(strdup(h.appName)), eCode(h.eCode),
62 aCode(h.aCode) {}

References Handle(), aCode, appName, and eCode.

Here is the call graph for this function:

◆ ~Handle()

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

Definition at line 64 of file XrdNetPMark.hh.

64{if(appName) free(appName);}

References appName.

Member Function Documentation

◆ getEA()

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

Definition at line 47 of file XrdNetPMark.hh.

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

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

Here is the call graph for this function:

◆ Valid()

bool XrdNetPMark::Handle::Valid ( )
inline

Definition at line 52 of file XrdNetPMark.hh.

52 {return (eCode == 0 && aCode == 0)
53 || (eCode >= minExpID && eCode <= maxExpID
54 && aCode >= minActID && aCode <= maxActID);}
static const int maxExpID
static const int minActID
static const int maxActID
static const int minExpID

References aCode, eCode, XrdNetPMark::maxActID, XrdNetPMark::maxExpID, 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 69 of file XrdNetPMark.hh.

Referenced by Handle(), Handle(), getEA(), XrdNetPMarkFF::Start(), and Valid().

◆ appName

char* XrdNetPMark::Handle::appName
protected

Definition at line 67 of file XrdNetPMark.hh.

Referenced by Handle(), Handle(), ~Handle(), and XrdNetPMarkFF::Start().

◆ eCode

int XrdNetPMark::Handle::eCode
protected

Definition at line 68 of file XrdNetPMark.hh.

Referenced by Handle(), Handle(), getEA(), XrdNetPMarkFF::Start(), and Valid().


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