xorp

CliPipe Class Reference

The class for the "pipe" ("|") command. More...

#include <cli_command_pipe.hh>

Inheritance diagram for CliPipe:
CliCommand

List of all members.

Public Member Functions

 CliPipe (const string &init_pipe_name)
 Constructor for a given pipe name.
virtual ~CliPipe ()
 Destructor.

Private Types

enum  cli_pipe_t {
  CLI_PIPE_COMPARE = 0, CLI_PIPE_COMPARE_ROLLBACK = 1, CLI_PIPE_COUNT = 2, CLI_PIPE_DISPLAY = 3,
  CLI_PIPE_DISPLAY_DETAIL = 4, CLI_PIPE_DISPLAY_INHERITANCE = 5, CLI_PIPE_DISPLAY_XML = 6, CLI_PIPE_EXCEPT = 7,
  CLI_PIPE_FIND = 8, CLI_PIPE_HOLD = 9, CLI_PIPE_MATCH = 10, CLI_PIPE_NOMORE = 11,
  CLI_PIPE_RESOLVE = 12, CLI_PIPE_SAVE = 13, CLI_PIPE_TRIM = 14, CLI_PIPE_MAX
}
typedef int(CliPipe::* StartPipe )(string &input_line, string &error_msg)
typedef int(CliPipe::* StopPipe )(string &error_msg)
typedef int(CliPipe::* LineProcess )(string &input_line)

Private Member Functions

bool is_invalid ()
void add_pipe_arg (const string &v)
void set_cli_client (CliClient *v)
int start_func (string &input_line, string &error_msg)
int stop_func (string &error_msg)
int process_func (string &input_line)
int eof_func (string &input_line)
string name2help (const string &pipe_name)
cli_pipe_t name2pipe_type (const string &pipe_name)
cli_pipe_t pipe_type ()
int pipe_compare_start (string &input_line, string &error_msg)
int pipe_compare_stop (string &error_msg)
int pipe_compare_process (string &input_line)
int pipe_compare_eof (string &input_line)
int pipe_compare_rollback_start (string &input_line, string &error_msg)
int pipe_compare_rollback_stop (string &error_msg)
int pipe_compare_rollback_process (string &input_line)
int pipe_compare_rollback_eof (string &input_line)
int pipe_count_start (string &input_line, string &error_msg)
int pipe_count_stop (string &error_msg)
int pipe_count_process (string &input_line)
int pipe_count_eof (string &input_line)
int pipe_display_start (string &input_line, string &error_msg)
int pipe_display_stop (string &error_msg)
int pipe_display_process (string &input_line)
int pipe_display_eof (string &input_line)
int pipe_display_detail_start (string &input_line, string &error_msg)
int pipe_display_detail_stop (string &error_msg)
int pipe_display_detail_process (string &input_line)
int pipe_display_detail_eof (string &input_line)
int pipe_display_inheritance_start (string &input_line, string &error_msg)
int pipe_display_inheritance_stop (string &error_msg)
int pipe_display_inheritance_process (string &input_line)
int pipe_display_inheritance_eof (string &input_line)
int pipe_display_xml_start (string &input_line, string &error_msg)
int pipe_display_xml_stop (string &error_msg)
int pipe_display_xml_process (string &input_line)
int pipe_display_xml_eof (string &input_line)
int pipe_except_start (string &input_line, string &error_msg)
int pipe_except_stop (string &error_msg)
int pipe_except_process (string &input_line)
int pipe_except_eof (string &input_line)
int pipe_find_start (string &input_line, string &error_msg)
int pipe_find_stop (string &error_msg)
int pipe_find_process (string &input_line)
int pipe_find_eof (string &input_line)
int pipe_hold_start (string &input_line, string &error_msg)
int pipe_hold_stop (string &error_msg)
int pipe_hold_process (string &input_line)
int pipe_hold_eof (string &input_line)
int pipe_match_start (string &input_line, string &error_msg)
int pipe_match_stop (string &error_msg)
int pipe_match_process (string &input_line)
int pipe_match_eof (string &input_line)
int pipe_nomore_start (string &input_line, string &error_msg)
int pipe_nomore_stop (string &error_msg)
int pipe_nomore_process (string &input_line)
int pipe_nomore_eof (string &input_line)
int pipe_resolve_start (string &input_line, string &error_msg)
int pipe_resolve_stop (string &error_msg)
int pipe_resolve_process (string &input_line)
int pipe_resolve_eof (string &input_line)
int pipe_save_start (string &input_line, string &error_msg)
int pipe_save_stop (string &error_msg)
int pipe_save_process (string &input_line)
int pipe_save_eof (string &input_line)
int pipe_trim_start (string &input_line, string &error_msg)
int pipe_trim_stop (string &error_msg)
int pipe_trim_process (string &input_line)
int pipe_trim_eof (string &input_line)
int pipe_unknown_start (string &input_line, string &error_msg)
int pipe_unknown_stop (string &error_msg)
int pipe_unknown_process (string &input_line)
int pipe_unknown_eof (string &input_line)

Private Attributes

StartPipe _start_func_ptr
StopPipe _stop_func_ptr
LineProcess _process_func_ptr
LineProcess _eof_func_ptr
cli_pipe_t _pipe_type
vector< string > _pipe_args_list
bool _is_running
int _counter
regex_t _preg
bool _bool_flag
CliClient_cli_client

Friends

class CliClient

Detailed Description

The class for the "pipe" ("|") command.


Constructor & Destructor Documentation

CliPipe::CliPipe ( const string &  init_pipe_name)

Constructor for a given pipe name.

Currently, the list of recognized pipe names are: count except find hold match no-more resolve save trim

Parameters:
init_pipe_namethe pipe name (see above about the list of recogined pipe names).

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