XRootD
XrdSecEntityXtra Class Reference

#include <XrdSecEntityXtra.hh>

+ Inheritance diagram for XrdSecEntityXtra:
+ Collaboration diagram for XrdSecEntityXtra:

Public Member Functions

 XrdSecEntityXtra ()
 
 ~XrdSecEntityXtra ()
 
void Reset ()
 
- Public Member Functions inherited from XrdSecEntityAttr
 XrdSecEntityAttr (XrdSecEntityXtra *xtra)
 
 ~XrdSecEntityAttr ()
 
bool Add (const std::string &key, const std::string &val, bool replace=false)
 
bool Add (XrdSecAttr &attr)
 
bool Get (const std::string &key, std::string &val)
 
XrdSecAttrGet (const void *sigkey)
 
std::vector< std::string > Keys ()
 
void List (XrdSecEntityAttrCB &attrCB)
 

Public Attributes

std::map< std::string, std::string > attrMap
 
std::vector< XrdSecAttr * > attrVec
 
XrdSysMutex xMutex
 

Detailed Description

Definition at line 39 of file XrdSecEntityXtra.hh.

Constructor & Destructor Documentation

◆ XrdSecEntityXtra()

XrdSecEntityXtra::XrdSecEntityXtra ( )
inline

Definition at line 51 of file XrdSecEntityXtra.hh.

51 : XrdSecEntityAttr(this) {}
XrdSecEntityAttr(XrdSecEntityXtra *xtra)

◆ ~XrdSecEntityXtra()

XrdSecEntityXtra::~XrdSecEntityXtra ( )
inline

Definition at line 52 of file XrdSecEntityXtra.hh.

52 {Reset();}

References Reset().

+ Here is the call graph for this function:

Member Function Documentation

◆ Reset()

void XrdSecEntityXtra::Reset ( )

Definition at line 37 of file XrdSecEntityXtra.cc.

38 {
40 
41 // Cleanup the key-value map
42 //
43  attrMap.clear();
44 
45 // Run through attribute objects, deleting each one
46 //
47  std::vector<XrdSecAttr*>::iterator it;
48  for (it = attrVec.begin(); it != attrVec.end(); it++)
49  {(*it)->Delete();}
50 
51 // Now clear the whole vector
52 //
53  attrVec.clear();
54 }
std::vector< XrdSecAttr * > attrVec
std::map< std::string, std::string > attrMap

References attrMap, attrVec, and xMutex.

Referenced by ~XrdSecEntityXtra(), and XrdSecEntity::Reset().

+ Here is the caller graph for this function:

Member Data Documentation

◆ attrMap

std::map<std::string, std::string> XrdSecEntityXtra::attrMap

◆ attrVec

std::vector<XrdSecAttr *> XrdSecEntityXtra::attrVec

Definition at line 45 of file XrdSecEntityXtra.hh.

Referenced by XrdSecEntityAttr::Add(), XrdSecEntityAttr::Get(), and Reset().

◆ xMutex


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