|
BDE 4.39.x Production Release
|
Basic Application Library Command Line (balcl)
Provide facility to parse process command-line arguments.
Basic Application Library Command Line (balcl)
The balcl package provides a set of components that enable users to access information from the process's command line via a value-semantic class, balcl::CommandLine. Full details can be found in the documentation of balcl_commandline and the other components of this package.
There are several steps to using balcl::CommandLine:
balcl::OptionInfo or balcl::Option objects. See {Option Attributes} below.balcl::CommandLine object from the command-line-option specification table.argv) to the parse method of the balcl::CommandLine object.parse method is successful, use balcl::CommandLine accessors or the accessors of a returned balcl::CommandLineOptionsHandle object. Note that options that were defined by the user but did not appear in the command line (i.e., the input to parse) are left in a "null" state unless the user also defined a default value for the option (see Option Attributes ).This package provides a rich set of features for users to define their allowed options. These include:
printUsage method.printUsage method.balcl::CommandLine accessors).The 'balcl' package currently has 8 components having 6 levels of physical dependency. The list below shows the hierarchical ordering of the components. The order of components within each level is not architecturally significant, just alphabetical.
balcl_commandline : Provide command line parsing, validation, and access.
balcl_constraint : Define constraint function signatures for supported value types.
balcl_occurrenceinfo : Provide a type describing requirement and default value of option.
balcl_option : Provide an allocator-aware command-line-option descriptor class.
balcl_optioninfo : Provide a POD command-line-option descriptor struct.
balcl_optiontype : Enumerate the types supported for command-line-option values.
balcl_optionvalue : Provide a variant type for command-line-option values.
balcl_typeinfo : Provide a class describing an option's type and other attributes.
Modules | |
| balcl_commandline | |
| balcl_constraint | |
| balcl_occurrenceinfo | |
| balcl_option | |
| balcl_optioninfo | |
| balcl_optiontype | |
| balcl_optionvalue | |
| balcl_typeinfo | |