class RouterCLI


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods


Detailed Description

 RouterCLI (XorpShellBase& xorpsh, CliNode& cli_node, XorpFd cli_client_input_fd, XorpFd cli_client_output_fd, bool verbose)
throw (InitError)

RouterCLI

 ~RouterCLI ()

~RouterCLI

bool  done ()

done

[const]

bool  is_config_mode ()

is_config_mode

[const]

void  clear_command_set ()

clear_command_set

int  configure_func (const string& , const string& , uint32_t , const vector<string>& command_global_name, const vector<string>& argv)

configure_func

void  enter_config_done (const XrlError& e)

enter_config_done

void  got_config_users (const XrlError& e, const XrlAtomList* users)

got_config_users

void  new_config_user (uid_t user_id)

new_config_user

void  leave_config_done (const XrlError& e)

leave_config_done

void  notify_user (const string& alert, bool urgent)

notify_user

void  config_changed_by_other_user ()

config_changed_by_other_user

int  op_help_func (const string& , const string& , uint32_t , const vector<string>& command_global_name, const vector<string>& argv)

op_help_func

int  conf_help_func (const string& , const string& , uint32_t , const vector<string>& command_global_name, const vector<string>& argv)

conf_help_func

int  logout_func (const string& , const string& , uint32_t , const vector<string>& command_global_name, const vector<string>& argv)

logout_func

int  exit_func (const string& , const string& , uint32_t , const vector<string>& command_global_name, const vector<string>& argv)

exit_func

int  edit_func (const string& , const string& , uint32_t , const vector<string>& command_global_name, const vector<string>& argv)

edit_func

int  extract_leaf_node_operator_and_value (const TemplateTreeNode& ttn, const vector<string>& argv, ConfigOperator& node_operator, string& value, string& error_msg)

extract_leaf_node_operator_and_value

map<string, CliCommandMatch>  text_entry_children_func ( const vector<string>& vector_path)

text_entry_children_func

[const]

int  text_entry_func (const string& , const string& , uint32_t , const vector<string>& command_global_name, const vector<string>& argv)

text_entry_func

int  delete_func (const string& , const string& , uint32_t , const vector<string>& command_global_name, const vector<string>& argv)

delete_func

int  commit_func (const string& , const string& , uint32_t , const vector<string>& command_global_name, const vector<string>& argv)

commit_func

void  commit_done (bool success, string error_msg)

commit_done

int  show_func (const string& , const string& , uint32_t , const vector<string>& command_global_name, const vector<string>& argv)

show_func

int  op_mode_func (const string& , const string& , uint32_t , const vector<string>& command_global_name, const vector<string>& argv)

op_mode_func

int  save_func (const string& , const string& , uint32_t , const vector<string>& command_global_name, const vector<string>& argv)

save_func

void  save_communicated (const XrlError& e)

save_communicated

void  save_done (bool success, string error_msg)

save_done

int  load_func (const string& , const string& , uint32_t , const vector<string>& command_global_name, const vector<string>& argv)

load_func

void  load_communicated (const XrlError& e)

load_communicated

void  load_done (bool success, string error_msg)

load_done

map<string, CliCommandMatch>  op_mode_help (const vector<string>& command_global_name)

op_mode_help

[const]

map<string, CliCommandMatch>  configure_mode_help (const vector<string>& command_global_name)

configure_mode_help

[const]

typedef XorpCallback1<void, const string&>::RefPtr OpModePrintCallback

OpModePrintCallback

typedef XorpCallback2<void, bool,const string&>::RefPtr OpModeDoneCallback

OpModeDoneCallback

void  op_mode_cmd_print (const string& result)

op_mode_cmd_print

Callback: partial output generated by the operational command

Parameters:

resultpartial output
void  op_mode_cmd_done (bool success, const string& error_msg)

op_mode_cmd_done

Callback: called when the operational command completes

Parameters:

successtrue if the command suceeded
error_msgif the command failed the error message
void  op_mode_cmd_interrupt (const string& server_name, const string& cli_term_name, uint32_t cli_session_id, const vector<string>& command_global_name, const vector<string>& command_args)

op_mode_cmd_interrupt

Callback: called when a user send an interrupt terminate the operational mode command if there is one running.

Parameters:

server_namethe name of the server that returned the result.
cli_term_namethe name of the terminal that originated the command.
cli_session_idthe session ID of the terminal that originated the command.
command_global_namethe name of the command that is interrupted.
command_argsthe arguments to the command that is interrupted.
void  op_mode_cmd_tidy ()

op_mode_cmd_tidy

Tidy up operational mode command.

Can safely be called multiple times.


Generated by: pavlin on possum.icir.org on Wed Aug 2 15:36:46 2006, using kdoc $.