libcopp  1.1.0
Public Member Functions | Data Fields
util::cli::phoenix::assign_logic_bool_t< T > Struct Template Reference

通用赋值动作 - 设置一个变量为bool值并检查语义 More...

#include <cmd_option_phoenix.h>

Collaboration diagram for util::cli::phoenix::assign_logic_bool_t< T >:
Collaboration graph

Public Member Functions

 assign_logic_bool_t (T &t)
 
void operator() (util::cli::callback_param params)
 

Data Fields

T & var
 

Detailed Description

template<typename T>
struct util::cli::phoenix::assign_logic_bool_t< T >

通用赋值动作 - 设置一个变量为bool值并检查语义

Note
no, false, disabled, disable, 0 都会被判定为false,其他为true

Definition at line 126 of file cmd_option_phoenix.h.

Constructor & Destructor Documentation

template<typename T >
util::cli::phoenix::assign_logic_bool_t< T >::assign_logic_bool_t ( T &  t)
inline

Definition at line 128 of file cmd_option_phoenix.h.

Member Function Documentation

template<typename T >
void util::cli::phoenix::assign_logic_bool_t< T >::operator() ( util::cli::callback_param  params)
inline

Field Documentation

template<typename T >
T& util::cli::phoenix::assign_logic_bool_t< T >::var

Definition at line 127 of file cmd_option_phoenix.h.


The documentation for this struct was generated from the following file: