namespace policy_backend_parser

Minimises global namespace pollution of yacc/lex variables. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods

Public Members


Detailed Description

The nature of lex and yacc causes global variables / functions to be present. Here such methods and functions are grouped under one namespace.

typedef vector<PolicyInstr*> POLICIES

POLICIES

int  policy_backend_parse (vector<PolicyInstr*>& outpolicies, map<string,Element*>& outsets, SUBR& outsubr, const string& conf, string& outerr)

policy_backend_parse

Parses a backend policy configuration.

Caller is responsible for deleting partially parsed policies and sets.

Parameters:

outpoliciesthe parse tree of all policies.
outsetsthe pair of set-name / content.
confthe configuration to parse.
outerrstring filled with parse error message, on error.

Returns: 0 on success. Otherwise, outerr is filled with error message.

extern vector<PolicyInstr*>* _yy_policies

_yy_policies

extern map<string,Element*>* _yy_sets

_yy_sets

extern vector<TermInstr*>* _yy_terms

_yy_terms

extern vector<Instruction*>* _yy_instructions

_yy_instructions

extern bool _yy_trace

_yy_trace

extern SUBR* _yy_subr

_yy_subr


Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:11:01 2009, using kdoc 2.0a54+XORP.