Back to index

nordugrid-arc-nox  1.1.0~rc6
Functions
GACLPolicy.cpp File Reference
#include <list>
#include "GACLPolicy.h"
#include "GACLRequest.h"

Go to the source code of this file.

Functions

static bool CompareIdentity (XMLNode pid, XMLNode rid)
static void CollectActions (XMLNode actions, std::list< std::string > &actions_list)
static bool FindAction (const std::string &action, const std::list< std::string > &actions)

Function Documentation

static void CollectActions ( XMLNode  actions,
std::list< std::string > &  actions_list 
) [static]

Definition at line 84 of file GACLPolicy.cpp.

                                                                             {
  for(int n = 0;;++n) {
    XMLNode action = actions.Child(n);
    if(!action) break;
    actions_list.push_back(action.Name());
  };
}

Here is the call graph for this function:

Here is the caller graph for this function:

static bool CompareIdentity ( XMLNode  pid,
XMLNode  rid 
) [static]

Definition at line 69 of file GACLPolicy.cpp.

                                                     {
  if(pid.Size() > 0) {
    for(int n=0;;++n) {
      XMLNode pitem = pid.Child(n);
      XMLNode ritem = rid[pitem.Name()];
      for(;(bool)ritem;++ritem) {
        if(CompareIdentity(pitem,ritem)) break;
      };
      if(!ritem) return false;
    };
    return true;
  };
  return (((std::string)pid) == ((std::string)rid));
}

Here is the call graph for this function:

Here is the caller graph for this function:

static bool FindAction ( const std::string &  action,
const std::list< std::string > &  actions 
) [static]

Definition at line 92 of file GACLPolicy.cpp.

                                                                                  {
  for(std::list<std::string>::const_iterator act = actions.begin();act!=actions.end();++act) {
    if((*act) == action) return true;
  };
  return false;
}

Here is the caller graph for this function: