libcopp  2.2.0
Data Structures | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes
util::cli::binder::cmd_option_bind_base Class Referenceabstract

#include <cmd_option_list.h>

Inheritance diagram for util::cli::binder::cmd_option_bind_base:
Inheritance graph
Collaboration diagram for util::cli::binder::cmd_option_bind_base:
Collaboration graph

Data Structures

struct  help_msg_t
 

Public Types

typedef callback_param param_type
 

Public Member Functions

virtual void operator() (callback_param arg)=0
 
virtual std::string get_help_msg (const char *prefix_data="") const
 
virtual std::shared_ptr< cmd_option_bind_baseset_help_msg (const char *help_msg)
 
virtual std::shared_ptr< cmd_option_bind_baseadd_help_msg (const char *help_msg)
 

Protected Types

typedef std::vector< help_msg_thelp_list_t
 

Protected Member Functions

virtual ~cmd_option_bind_base ()
 

Static Protected Member Functions

static bool sort_by_all_cmds (const help_msg_t &l, const help_msg_t &r)
 

Protected Attributes

std::string help_msg_
 

Static Protected Attributes

static const char * ROOT_NODE_CMD = "@Root"
 

Detailed Description

Definition at line 32 of file cmd_option_list.h.

Member Typedef Documentation

◆ help_list_t

Definition at line 41 of file cmd_option_list.h.

◆ param_type

Definition at line 50 of file cmd_option_list.h.

Constructor & Destructor Documentation

◆ ~cmd_option_bind_base()

virtual util::cli::binder::cmd_option_bind_base::~cmd_option_bind_base ( )
inlineprotectedvirtual

Definition at line 44 of file cmd_option_list.h.

Member Function Documentation

◆ add_help_msg()

virtual std::shared_ptr<cmd_option_bind_base> util::cli::binder::cmd_option_bind_base::add_help_msg ( const char *  help_msg)
inlinevirtual

Definition at line 64 of file cmd_option_list.h.

References help_msg_.

◆ get_help_msg()

virtual std::string util::cli::binder::cmd_option_bind_base::get_help_msg ( const char *  prefix_data = "") const
inlinevirtual

Reimplemented in util::cli::cmd_option_bind< TCmdStr >.

Definition at line 55 of file cmd_option_list.h.

References help_msg_.

◆ operator()()

virtual void util::cli::binder::cmd_option_bind_base::operator() ( callback_param  arg)
pure virtual

◆ set_help_msg()

virtual std::shared_ptr<cmd_option_bind_base> util::cli::binder::cmd_option_bind_base::set_help_msg ( const char *  help_msg)
inlinevirtual

Definition at line 58 of file cmd_option_list.h.

References help_msg_.

◆ sort_by_all_cmds()

static bool util::cli::binder::cmd_option_bind_base::sort_by_all_cmds ( const help_msg_t l,
const help_msg_t r 
)
inlinestaticprotected

Field Documentation

◆ help_msg_

std::string util::cli::binder::cmd_option_bind_base::help_msg_
protected

◆ ROOT_NODE_CMD

const char * util::cli::binder::cmd_option_bind_base::ROOT_NODE_CMD = "@Root"
staticprotected

Definition at line 34 of file cmd_option_list.h.

Referenced by util::cli::cmd_option_bind< TCmdStr >::run_cmd().


The documentation for this class was generated from the following files: