TemplateTree (const string& xorp_root_dir,
bool verbose)
throw (InitError) | TemplateTree |
~TemplateTree ()
| ~TemplateTree |
[virtual]
bool load_template_tree (const string& config_template_dir,
string& errmsg)
| load_template_tree |
bool parse_file (const string& filename,
const string& config_template_dir, string& errmsg)
| 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]
string path_as_string ()
| path_as_string |
void add_cmd (char* cmd)
| add_cmd |
void add_cmd_action (const string& cmd, const list<string>& action)
| 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]
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]