An exit-code of a cli application.
Construction is done by passing a custom enum element of an enum type equipped with ALib Enum Records of type ERExitCodeDecl.
When bootstrapping, the method void DefineExitCodes() has to be invoked for (each) enum type.
With the announcment of exit codes to the CLI, these codes can be listed with help output generated by class CLIUtil.
Definition at line 556 of file cliargtypes.hpp.
#include <cliargtypes.hpp>
Public Method Index: | |
| template<typename TEnum> | |
| ExitCodeDecl (TEnum element) | |
| const String & | FormatString () |
| const String & | Name () |
Protected Field Index: | |
| Enum | declElement |
| The enumeration element given with construction. | |
| ERExitCodeDecl | record |
| A copy (!) of the enum record. | |
| ResourceInfo | resourceInfo |
| The resource information of the enumeration type given with construction. | |
|
protected |
The enumeration element given with construction.
Definition at line 559 of file cliargtypes.hpp.
|
protected |
A copy (!) of the enum record.
Definition at line 562 of file cliargtypes.hpp.
|
protected |
The resource information of the enumeration type given with construction.
Definition at line 565 of file cliargtypes.hpp.
|
inline |
Templated constructor which takes an enum element of a custom type equipped with ALib Enum Records of type ERExitCodeDecl.
| TEnum | C++ enum type equipped with corresponding ALib Enum Records. |
| element | The enum element. |
Definition at line 574 of file cliargtypes.hpp.
|
inline |
Returns the format string associated with this exit-code. Loads the string from resourceInfo using resource name "TExitNN", where NN is the enum element's integral value.
Definition at line 590 of file cliargtypes.hpp.
|
inline |
Returns the name of the enum element
Definition at line 584 of file cliargtypes.hpp.