ConfigTree Class Reference

Inheritance diagram for ConfigTree:
MasterConfigTree SlaveConfigTree

List of all members.

Public Member Functions

 ConfigTree (TemplateTree *tt, bool verbose)
bool parse (const string &configuration, const string &config_file, string &error_msg)
void push_path ()
void extend_path (const string &segment, int type, const ConfigNodeId &node_id)
void pop_path ()
void add_node (const string &nodename, int type, const ConfigNodeId &node_id) throw (ParseError)
virtual ConfigTreeNodecreate_node (const string &segment, const string &path, const TemplateTreeNode *ttn, ConfigTreeNode *parent_node, const ConfigNodeId &node_id, uid_t user_id, bool verbose)=0
virtual ConfigTreecreate_tree (TemplateTree *tt, bool verbose)=0
void terminal_value (const string &value, int type, ConfigOperator op) throw (ParseError)
list< ConfPathSegmentpath_as_segments () const
const TemplateTreeNodefind_template (const list< string > &path_segments) const
const TemplateTreeNodefind_template_by_type (const list< ConfPathSegment > &path_segments) const
virtual ConfigTreeNoderoot_node ()=0
virtual const ConfigTreeNodeconst_root_node () const =0
ConfigTreeNodefind_node (const list< string > &path)
const ConfigTreeNodefind_const_node (const list< string > &path) const
ConfigTreeNodefind_config_module (const string &module_name)
string show_subtree (bool show_top, const list< string > &path_segments, bool numbered, bool suppress_default_values) const
string show_tree (bool numbered) const
string show_unannotated_tree (bool numbered) const
string tree_str () const
bool apply_deltas (uid_t user_id, const string &deltas, bool provisional_change, bool preserve_node_id, string &response)
bool apply_deletions (uid_t user_id, const string &deletions, bool provisional_change, string &response)
void retain_different_nodes (const ConfigTree &them, bool retain_changed_values)
void retain_deletion_nodes (const ConfigTree &them, bool retain_value_changed)
void retain_common_nodes (const ConfigTree &them)
void add_default_children ()
void expand_varname_to_matchlist (const string &varname, list< string > &matches) const

Protected Member Functions

string path_as_string (const list< string > &path_segments) const
string current_path_as_string () const
const ConfigTreeNodefind_config_node (const list< string > &path_segments) const

Protected Attributes

string _config_file
list< ConfPathSegment_path_segments
list< size_t > _segment_lengths
bool _verbose

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations