libcopp  2.2.0
Public Types | Public Member Functions | Protected Types | Static Protected Member Functions | Protected Attributes | Static Protected Attributes
util::cli::binder::cmd_option_bindt< _F, _PL > Class Template Reference

#include <cmd_option_bindt_base.h>

Inheritance diagram for util::cli::binder::cmd_option_bindt< _F, _PL >:
Inheritance graph
Collaboration diagram for util::cli::binder::cmd_option_bindt< _F, _PL >:
Collaboration graph

Public Types

typedef cmd_option_bindt this_type
 
typedef callback_param param_type
 

Public Member Functions

 cmd_option_bindt (_F f, _PL l)
 
void operator() (callback_param args)
 
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
 

Static Protected Member Functions

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

Protected Attributes

_F func_obj_
 
_PL param_list_
 
std::string help_msg_
 

Static Protected Attributes

static const char * ROOT_NODE_CMD = "@Root"
 

Detailed Description

template<class _F, class _PL>
class util::cli::binder::cmd_option_bindt< _F, _PL >

Definition at line 30 of file cmd_option_bindt_base.h.

Member Typedef Documentation

◆ help_list_t

typedef std::vector<help_msg_t> util::cli::binder::cmd_option_bind_base::help_list_t
protectedinherited

Definition at line 41 of file cmd_option_list.h.

◆ param_type

Definition at line 50 of file cmd_option_list.h.

◆ this_type

template<class _F , class _PL >
typedef cmd_option_bindt util::cli::binder::cmd_option_bindt< _F, _PL >::this_type

Definition at line 36 of file cmd_option_bindt_base.h.

Constructor & Destructor Documentation

◆ cmd_option_bindt()

template<class _F , class _PL >
util::cli::binder::cmd_option_bindt< _F, _PL >::cmd_option_bindt ( _F  f,
_PL  l 
)
inline

Definition at line 38 of file cmd_option_bindt_base.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)
inlinevirtualinherited

◆ get_help_msg()

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

◆ operator()()

template<class _F , class _PL >
void util::cli::binder::cmd_option_bindt< _F, _PL >::operator() ( callback_param  args)
inlinevirtual

◆ 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)
inlinevirtualinherited

◆ 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 
)
inlinestaticprotectedinherited

Field Documentation

◆ func_obj_

template<class _F , class _PL >
_F util::cli::binder::cmd_option_bindt< _F, _PL >::func_obj_
protected

◆ help_msg_

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

◆ param_list_

template<class _F , class _PL >
_PL util::cli::binder::cmd_option_bindt< _F, _PL >::param_list_
protected

◆ ROOT_NODE_CMD

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

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 file: