Quick Links: |
Provide facility to parse process command-line arguments. More...
Components | |
Component balcl_commandline | |
Provide command line parsing, validation, and access. | |
Component balcl_constraint | |
Define constraint function signatures for supported value types. | |
Component balcl_occurrenceinfo | |
Provide a type describing requirement and default value of option. | |
Component balcl_option | |
Provide an allocator-aware command-line-option descriptor class. | |
Component balcl_optioninfo | |
Provide a POD command-line-option descriptor | |
Component balcl_optiontype | |
Enumerate the types supported for command-line-option values. | |
Component balcl_optionvalue | |
Provide a variant type for command-line-option values. | |
Component balcl_typeinfo | |
Provide a class describing an option's type and other attributes. |
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
. An Overview is provided below. Full details can be found in the documentation of balcl_commandline
and the other components of this package. 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). printUsage
method. printUsage
method. If the option has a value, the user can specify:
balcl::CommandLine
accessors). 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. 6. balcl_commandline 5. balcl_option 4. balcl_optioninfo 3. balcl_occurrenceinfo balcl_typeinfo 2. balcl_optionvalue 1. balcl_constraint balcl_optiontype
balcl_commandline
: balcl_constraint
: balcl_occurrenceinfo
: balcl_option
: balcl_optioninfo
: struct
.balcl_optiontype
: balcl_optionvalue
: balcl_typeinfo
: