class TemplateTree


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Protected Methods

Protected Members


Detailed Description

 TemplateTree (const string& xorp_root_dir, bool verbose)
throw (InitError)

TemplateTree

 ~TemplateTree ()

~TemplateTree

[virtual]

bool  load_template_tree (const string& config_template_dir, string& error_msg)

load_template_tree

bool  parse_file (const string& filename, const string& config_template_dir, string& error_msg)

parse_file

void  extend_path (const string& segment, bool is_tag)

extend_path

void  pop_path ()
throw (ParseError)

pop_path

void  push_path (int type, char* initializer)

push_path

void  add_untyped_node (const string& segment, bool is_tag)
throw (ParseError)

add_untyped_node

void  add_node (const string& segment, int type, char* initializer)

add_node

const TemplateTreeNode*  find_node (const list<string>& path_segments)

find_node

[const]

const TemplateTreeNode*  find_node_by_type (const list<ConfPathSegment>& path_segments)

find_node_by_type

[const]

string  path_as_string ()

path_as_string

void  add_cmd (char* cmd)
throw (ParseError)

add_cmd

void  add_cmd_action (const string& cmd, const list<string>& action)
throw (ParseError)

add_cmd_action

string  tree_str ()

tree_str

[const]

void  register_module (const string& name, ModuleCommand* mc)

register_module

ModuleCommand*  find_module (const string& name)

find_module

bool  check_variable_name (const string& s)

check_variable_name

[const]

TemplateTreeNode*  root_node ()

root_node

[const]

const string&  xorp_root_dir ()

xorp_root_dir

[const]

bool  verbose ()

verbose

[const]

TemplateTreeNode*  new_node (TemplateTreeNode* parent, const string& path, const string& varname, int type, const string& initializer)

new_node

[protected]

bool  expand_template_tree (string& error_msg)

expand_template_tree

[protected]

bool  check_template_tree (string& error_msg)

check_template_tree

[protected]

TemplateTreeNode* _root_node

_root_node

[protected]

TemplateTreeNode* _current_node

_current_node

[protected]

map<string, ModuleCommand *> _registered_modules

_registered_modules

[protected]

list<PathSegment> _path_segments

_path_segments

[protected]

list<size_t> _segment_lengths

_segment_lengths

[protected]

string _xorp_root_dir

_xorp_root_dir

[protected]

bool _verbose

_verbose

[protected]


Generated by: pavlin on possum.icir.org on Thu Mar 9 04:43:58 2006, using kdoc $.