OpenSDN source code
policy_config_parser.cc File Reference
#include "policy_config_parser.h"
#include <sstream>
#include <boost/ptr_container/ptr_list.hpp>
#include "base/logging.h"
#include <pugixml/pugixml.hpp>
#include "schema/routing_policy_types.h"
Include dependency graph for policy_config_parser.cc:

Go to the source code of this file.

Classes

struct  PolicyTerm
 

Typedefs

typedef boost::ptr_list< PolicyTermPolicyTerms
 
typedef std::map< std::string, PolicyTermsPolicyMap
 

Functions

static bool ParseTerm (const xml_node &xterm, PolicyTerm *term)
 
static bool ParsePolicy (const xml_node &node, PolicyMap *policy)
 

Typedef Documentation

◆ PolicyMap

typedef std::map<std::string, PolicyTerms> PolicyMap

Definition at line 27 of file policy_config_parser.cc.

◆ PolicyTerms

typedef boost::ptr_list<PolicyTerm> PolicyTerms

Definition at line 25 of file policy_config_parser.cc.

Function Documentation

◆ ParsePolicy()

static bool ParsePolicy ( const xml_node &  node,
PolicyMap policy 
)
static

Definition at line 48 of file policy_config_parser.cc.

Here is the call graph for this function:

◆ ParseTerm()

static bool ParseTerm ( const xml_node &  xterm,
PolicyTerm term 
)
static

Definition at line 29 of file policy_config_parser.cc.