class ConfigTreeNode


Definition#include <conf_tree_node.hh>
Inherited byMasterConfigTreeNode, SlaveConfigTreeNode
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Types

Protected Methods

Protected Members


Detailed Description

 ConfigTreeNode ()

ConfigTreeNode

 ConfigTreeNode (const ConfigTreeNode& ctn)

ConfigTreeNode

 ConfigTreeNode (const string &node_name, const string &path, const TemplateTreeNode *ttn, ConfigTreeNode *parent, uid_t user_id)

ConfigTreeNode

 ~ConfigTreeNode ()

~ConfigTreeNode

bool  operator== (const ConfigTreeNode& them)

operator==

[const]

void  add_child (ConfigTreeNode *child)

add_child

void  remove_child (ConfigTreeNode *child)

remove_child

void  add_default_children ()

add_default_children

void  recursive_add_default_children ()

recursive_add_default_children

void  set_value (const string &value, uid_t user_id)

set_value

void  mark_subtree_as_committed ()

mark_subtree_as_committed

void  command_status_callback (Command *cmd, bool success)

command_status_callback

bool  merge_deltas (uid_t user_id, const ConfigTreeNode& delta_node, bool provisional_change, string& response)

merge_deltas

bool  merge_deletions (uid_t user_id, const ConfigTreeNode& deletion_node, bool provisional_change, string& response)

merge_deletions

void  find_changed_modules (set <string>& changed_modules)

find_changed_modules

[const]

void  find_active_modules (set <string>& active_modules)

find_active_modules

[const]

void  find_all_modules (set <string>& all_modules)

find_all_modules

[const]

void  initialize_commit ()

initialize_commit

bool  commit_changes (TaskManager& task_manager, bool do_commit, int depth, int last_depth, string& result)

commit_changes

bool  check_commit_status (string &response)

check_commit_status

[const]

void  finalize_commit ()

finalize_commit

string  discard_changes (int depth, int last_depth)

discard_changes

int  type ()

type

[const]

bool  is_root_node ()

is_root_node

[const]

bool  is_tag ()

is_tag

[const]

bool  is_leaf ()

is_leaf

[const]

const TemplateTreeNode*  template_node ()

template_node

[const]

string  s ()

s

[const]

string  typestr ()

typestr

[const]

const string&  segname ()

segname

[const]

const string&  value ()

value

[const]

const string&  named_value (const string& varname)

named_value

[const]

void  set_named_value (const string& varname, const string& value)

set_named_value

uid_t  user_id ()

user_id

[const]

void  set_existence_committed (bool exists)

set_existence_committed

bool  existence_committed ()

existence_committed

[const]

bool  deleted ()

deleted

[const]

void  undelete ()

undelete

const TimeVal&  modification_time ()

modification_time

[const]

const string&  path ()

path

[const]

void  set_parent (ConfigTreeNode* parent)

set_parent

ConfigTreeNode*  parent ()

parent

const ConfigTreeNode*  const_parent ()

const_parent

[const]

list <ConfigTreeNode*>&  children ()

children

const list <ConfigTreeNode*>&  const_children ()

const_children

[const]

string  show_subtree (int depth, int indent, bool do_indent, bool annotate)

show_subtree

[const]

string  str ()

str

[const]

void  mark_subtree_for_deletion (uid_t user_id)

mark_subtree_for_deletion

void  delete_subtree_silently ()

delete_subtree_silently

void  clone_subtree (const ConfigTreeNode& orig_node)

clone_subtree

bool  retain_different_nodes (const ConfigTreeNode& them, bool retain_changed_values)

retain_different_nodes

void  retain_common_nodes (const ConfigTreeNode& them)

retain_common_nodes

ConfigTreeNode*  find_node (list <string>& path)

find_node

void  print_tree ()

print_tree

[const]

bool  expand_expression (const string& varname, string& value)

expand_expression

[const]

bool  expand_variable (const string& varname, string& value)

expand_variable

[const]

void  expand_varname_to_matchlist (const vector<string>& v, uint depth, list <string>& matches)

expand_varname_to_matchlist

[const]

bool  set_variable (const string& varname, string& value)

set_variable

void  split_up_varname (const string& varname, list <string>& var_parts)

split_up_varname

[protected const]

string  join_up_varname (const list <string>& var_parts)

join_up_varname

[protected const]

enum VarType {NONE, NODE_VALUE, NAMED, TEMPLATE_DEFAULT}

VarType

[protected]

ConfigTreeNode*  find_varname_node (const string& varname, VarType& type)

find_varname_node

[protected]

const ConfigTreeNode*  find_const_varname_node (const string& varname, VarType& type)

find_const_varname_node

[protected const]

ConfigTreeNode*  find_parent_varname_node (const list <string>& var_parts, VarType& type)

find_parent_varname_node

[protected]

ConfigTreeNode*  find_child_varname_node (const list <string>& var_parts, VarType& type)

find_child_varname_node

[protected]

const TemplateTreeNode * _template

_template

[protected]

bool _deleted

_deleted

[protected]

bool _has_value

_has_value

[protected]

string _value

_value

[protected]

string _committed_value

_committed_value

[protected]

string _segname

_segname

[protected]

string _path

_path

[protected]

ConfigTreeNode * _parent

_parent

[protected]

list <ConfigTreeNode *> _children

_children

[protected]

uid_t _user_id

_user_id

[protected]

uid_t _committed_user_id

_committed_user_id

[protected]

TimeVal _modification_time

_modification_time

[protected]

TimeVal _committed_modification_time

_committed_modification_time

[protected]

bool _existence_committed

_existence_committed

[protected]

bool _value_committed

_value_committed

[protected]

int _actions_pending

_actions_pending

[protected]

bool _actions_succeeded

_actions_succeeded

[protected]

Command * _cmd_that_failed

_cmd_that_failed

[protected]

map <string, string> _variables

_variables

[protected]

bool _on_parent_path

_on_parent_path

[protected]


Generated by: pavlin on possum.icir.org on Thu Nov 6 23:47:10 2003, using kdoc 2.0a54+XORP.