Scarab  v2.4.7
Project 8 C++ Utility Library
Public Member Functions | Private Attributes | List of all members
test_app Class Reference
Inheritance diagram for test_app:
Inheritance graph

Public Member Functions

 test_app ()
 
virtual ~test_app ()
 
void set_first_value (int a_value)
 
int get_first_value ()
 
const std::string & second_value () const
 
std::string & second_value ()
 
- Public Member Functions inherited from main_app
 main_app ()
 
virtual ~main_app ()
 
virtual void pre_callback ()
 
virtual void do_config_stage_1 ()
 Load default values. More...
 
virtual void do_config_stage_2 ()
 Load the config file. More...
 
virtual void do_config_stage_3 ()
 Load the directly-addressed non-option arguments. More...
 
virtual void do_config_stage_4 ()
 Load the application-specific options. More...
 
void set_version (version_semantic *a_ver)
 
 mv_referrable (param_node, master_config)
 Master configuration tree for the application. More...
 
 mv_referrable (param_node, default_config)
 Default configuration values. More...
 
 mv_referrable_const (std::string, config_filename)
 Configuration file name. More...
 
 mv_accessible (unsigned, global_verbosity)
 Global verbosity value. More...
 
 mv_referrable (param_node, nonoption_kw_args)
 Keyword configuration values coming from the command line, in the form: config.address=value. More...
 
 mv_referrable (param_array, nonoption_ord_args)
 Ordered configuration values coming in an application-specific order from the command line, in the form: value. More...
 
 mv_referrable (param_node, app_options)
 Application-specific options that are specified using add_config_option() functions. More...
 
 mv_referrable (std::vector< std::shared_ptr< app_option_holder > >, app_option_holders)
 Store the app option holder structs from this app and any subcommands. More...
 
- Public Member Functions inherited from config_decorator
 config_decorator (main_app *a_main, app *a_this_app)
 
 config_decorator (const config_decorator &)=delete
 
 config_decorator (config_decorator &&)=delete
 
virtual ~config_decorator ()
 
config_decoratoroperator= (const config_decorator &)=delete
 
config_decoratoroperator= (config_decorator &&)=delete
 
main_appmain () const
 
appthis_app () const
 
config_decoratoradd_config_subcommand (std::string a_subcommand_name, std::string a_description="")
 Add a subcommand that is linked to a particular main_app and can create options that modify that main_app's master config. More...
 
template<typename T , CLI::enable_if_t< ! CLI::is_vector< T >::value, CLI::detail::enabler > = CLI::detail::dummy>
CLI::Option * add_config_option (std::string a_name, std::string a_master_config_addr, std::string a_description="")
 Add an option that gets automatically added to the master config of a main_app. More...
 
template<typename T , CLI::enable_if_t< ! CLI::is_vector< T >::value, CLI::detail::enabler > = CLI::detail::dummy>
CLI::Option * add_config_multi_option (std::string a_name, std::string a_master_config_addr, std::string a_description="")
 Add an option that gets automatically added to the master config of a main_app. More...
 
template<typename T , CLI::enable_if_t< std::is_integral< T >::value &&! CLI::is_bool< T >::value, CLI::detail::enabler > = CLI::detail::dummy>
CLI::Option * add_config_flag (std::string a_name, std::string a_master_config_addr, std::string a_description="")
 
template<typename T , CLI::enable_if_t< CLI::is_bool< T >::value, CLI::detail::enabler > = CLI::detail::dummy>
CLI::Option * add_config_flag (std::string a_name, std::string a_master_config_addr, std::string a_description="")
 

Private Attributes

int f_first_value
 
std::string f_second_value
 

Additional Inherited Members

- Protected Types inherited from config_decorator
using conf_dec_ptr_t = std::unique_ptr< config_decorator >
 
- Protected Attributes inherited from config_decorator
main_appf_main
 
appf_this
 
std::vector< conf_dec_ptr_tf_subcommand_decorators
 

Detailed Description

Definition at line 35 of file test_app_with_options.cc.

Constructor & Destructor Documentation

◆ test_app()

test_app ( )
inline

Definition at line 38 of file test_app_with_options.cc.

◆ ~test_app()

virtual ~test_app ( )
inlinevirtual

Definition at line 52 of file test_app_with_options.cc.

Member Function Documentation

◆ get_first_value()

int get_first_value ( )
inline

Definition at line 55 of file test_app_with_options.cc.

◆ second_value() [1/2]

const std::string& second_value ( ) const
inline

Definition at line 57 of file test_app_with_options.cc.

◆ second_value() [2/2]

std::string& second_value ( )
inline

Definition at line 58 of file test_app_with_options.cc.

◆ set_first_value()

void set_first_value ( int  a_value)
inline

Definition at line 54 of file test_app_with_options.cc.

Member Data Documentation

◆ f_first_value

int f_first_value
private

Definition at line 61 of file test_app_with_options.cc.

◆ f_second_value

std::string f_second_value
private

Definition at line 62 of file test_app_with_options.cc.


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