XRootD
XrdSysError_Table_Errno Class Reference

#include <XrdSysError.hh>

+ Collaboration diagram for XrdSysError_Table_Errno:

Public Member Functions

 XrdSysError_Table_Errno (int base, int last, const int *codes)
 
 ~XrdSysError_Table_Errno ()
 
int Lookup (int mnum)
 

Friends

class XrdSysError
 

Detailed Description

Definition at line 46 of file XrdSysError.hh.

Constructor & Destructor Documentation

◆ XrdSysError_Table_Errno()

XrdSysError_Table_Errno::XrdSysError_Table_Errno ( int  base,
int  last,
const int *  codes 
)
inline

Definition at line 55 of file XrdSysError.hh.

56  : next(0),
57  base_msgnum(base),
58  last_msgnum(last),
59  translations(codes) {}

◆ ~XrdSysError_Table_Errno()

XrdSysError_Table_Errno::~XrdSysError_Table_Errno ( )
inline

Definition at line 60 of file XrdSysError.hh.

60 {}

Member Function Documentation

◆ Lookup()

int XrdSysError_Table_Errno::Lookup ( int  mnum)
inline

Definition at line 51 of file XrdSysError.hh.

52  {return (mnum < base_msgnum || mnum > last_msgnum
53  ? 0 : translations[mnum - base_msgnum]);
54  }

Referenced by XrdSysError::ec2errno().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ XrdSysError

friend class XrdSysError
friend

Definition at line 49 of file XrdSysError.hh.


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