This is the reference documentation of sub-namespace app of the ALib C++ Framework, which holds types of library module ALib App.
Besides this reference documentation, further documentation and source code samples for this module is provided with ALib Module App - Programmer's Manual.
Type Index: | |
| class | App |
| class | AppCli |
| class | AppCliCamp |
Enumeration Index: | |
| enum class | Commands { Help = 1 , Version = 2 , Info = 3 , SetVariables = 4 } |
| Built-in commands used with class AppCli. More... | |
| enum class | ExitCodes { ErrNoCmdGiven = 1 , ErrUnknownCommand = 2 , ErrParsingOption = 3 , ErrParsingCommand = 4 , ErrMissingCmdParam = 5 , ErrMissingOptParam = 6 , ErrBadParamValue = 7 } |
| Built-in exit-code used with class AppCli. More... | |
| enum class | Options { Help = 1 , Version = 2 , DryRun = 3 , Config = 4 , Verbose = 5 } |
| Built-in options used with class AppCli. More... | |
| enum class | Parameters { Topic = 1 , DryRunMode = 2 } |
| Built-in parameters of commands and options used with class AppCli. More... | |
Function Index: | |
| template<typename TApp = app::App> | |
| TApp & | Get () |
Variable Index: | |
| App * | APP_SINGLETON = nullptr |
|
strong |
Built-in commands used with class AppCli.
| Enumerator | |
|---|---|
| Help | Show help text. |
| Version | Show version information. |
| Info | Show info and configuration details. |
| SetVariables | Store a variable persistently in the configuration file. |
Definition at line 19 of file appclienums.inl.
|
strong |
Built-in exit-code used with class AppCli.
Definition at line 44 of file appclienums.inl.
|
strong |
Built-in options used with class AppCli.
Definition at line 27 of file appclienums.inl.
|
strong |
Built-in parameters of commands and options used with class AppCli.
| Enumerator | |
|---|---|
| Topic | Used with command help to optionally denote a help topic. |
| DryRunMode | Used with command dryrun to optionally denote level. |
Definition at line 38 of file appclienums.inl.
|
inline |
Convenience function that returns the singleton instance of an ALib application.
| TApp | The app type to cast to. |