OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
< PolicyTerm
PolicyTerms
 
typedef std::map< std::string,
PolicyTerms
PolicyMap
 

Functions

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

Typedef Documentation

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

Definition at line 27 of file policy_config_parser.cc.

typedef boost::ptr_list<PolicyTerm> PolicyTerms

Definition at line 25 of file policy_config_parser.cc.

Function Documentation

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:

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

Definition at line 29 of file policy_config_parser.cc.