Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Private Attributes
ArcSec::PDPConfigContext Class Reference

#include <PDP.h>

Inheritance diagram for ArcSec::PDPConfigContext:
Inheritance graph
[legend]
Collaboration diagram for ArcSec::PDPConfigContext:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PDPConfigContext ()
 PDPConfigContext (std::list< ArcSec::AuthzRequest > req, std::string &policy)
 PDPConfigContext (std::list< ArcSec::AuthzRequest > req, std::list< std::string > policy)
void AddRequestItem (ArcSec::AuthzRequest requestitem)
void SetRequestItem (ArcSec::AuthzRequest requestitem)
void SetRequestItem (std::list< ArcSec::AuthzRequest > req)
int RequestItemSize ()
ArcSec::AuthzRequestGetRequestItem (int n)
void AddPolicyLocation (std::string &policy)
void SetPolicyLocation (std::list< std::string > policy)
void SetPolicyLocation (std::string &policy)
std::list< std::string > & GetPolicyLocation ()
virtual ~PDPConfigContext (void)

Private Attributes

std::list< ArcSec::AuthzRequestrequest
std::list< std::string > policylocation

Detailed Description

Definition at line 32 of file PDP.h.


Constructor & Destructor Documentation

Definition at line 38 of file PDP.h.

{};
ArcSec::PDPConfigContext::PDPConfigContext ( std::list< ArcSec::AuthzRequest req,
std::string &  policy 
) [inline]

Definition at line 39 of file PDP.h.

{request = req; policylocation.push_back(policy); };
ArcSec::PDPConfigContext::PDPConfigContext ( std::list< ArcSec::AuthzRequest req,
std::list< std::string >  policy 
) [inline]

Definition at line 40 of file PDP.h.

{request = req; policylocation = policy; };
virtual ArcSec::PDPConfigContext::~PDPConfigContext ( void  ) [inline, virtual]

Definition at line 71 of file PDP.h.

                                    {
      while(!(request.empty())) { request.pop_back(); }
    };

Member Function Documentation

void ArcSec::PDPConfigContext::AddPolicyLocation ( std::string &  policy) [inline]

Definition at line 57 of file PDP.h.

{ policylocation.push_back(policy); };

Definition at line 41 of file PDP.h.

{ request.push_back(requestitem); };
std::list<std::string>& ArcSec::PDPConfigContext::GetPolicyLocation ( ) [inline]

Definition at line 70 of file PDP.h.

{ return policylocation; }; 

Definition at line 51 of file PDP.h.

                                              { 
      std::list<ArcSec::AuthzRequest>::iterator it, ret;
      it = request.begin();
      for(int i = 0; i<=n; i++) {ret = it; it++;}
      return (*ret); 
    };

Definition at line 50 of file PDP.h.

{ return (int)(request.size()); };
void ArcSec::PDPConfigContext::SetPolicyLocation ( std::list< std::string >  policy) [inline]

Definition at line 58 of file PDP.h.

                                                      { 
      std::list<std::string>::iterator it1 = policylocation.begin();
      std::list<std::string>::iterator it2 = policylocation.end(); 
      policylocation.erase(it1, it2); 
      policylocation = policy; 
    };
void ArcSec::PDPConfigContext::SetPolicyLocation ( std::string &  policy) [inline]

Definition at line 64 of file PDP.h.

                                              { 
      std::list<std::string>::iterator it1 = policylocation.begin();
      std::list<std::string>::iterator it2 = policylocation.end();  
      policylocation.erase(it1, it2);
      policylocation.push_back(policy); 
    };

Definition at line 42 of file PDP.h.

                                                        { 
      while(!(request.empty())) { request.pop_back(); }
      request.push_back(requestitem); 
    };

Definition at line 46 of file PDP.h.

                                                         { 
      while(!(request.empty())) { request.pop_back(); }
      request = req;
    };

Member Data Documentation

std::list<std::string> ArcSec::PDPConfigContext::policylocation [private]

Definition at line 35 of file PDP.h.

Definition at line 34 of file PDP.h.


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