This class is a attribute class that describes the type, the variable to be linked, and the constraint on an option. Note that the constraint type is opaque, but it is possible to apply the constraint to an element of the same type as the option and see whether it is valid (using the satisfiesConstraint methods of TypeInfoUtil).
Synopsis
Declared in <balcl_typeinfo.h>
class TypeInfo;
Enums
Name |
Description |
This enumeration differentiates the source of input when parsing an option type. Note that boolean options, in particular, are treated differently when supplied on the command line from how they are treated when supplied by an environment variable (see 'balcl_commandline'). |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object. |
Assign to this object the value of the specified |
|
Return the allocator used by this object to supply memory. Note that if no allocator was supplied at construction the currently installed default allocator at construction is used. |
|
Return a shared pointer to the (opaque) object storing the constraint associated with the described option. If this object has no constraint an empty shared pointer is returned. The lifetime of any shared reference to this object's constraint must not exceed that of this object's allocator. |
|
Return |
|
Return the address of the modifiable variable linked to the described option, or 0 if no variable is linked. |
|
Format this object to the specified output |
|
Reset this object so that it no longer has a constraint. This method has no effect if the object has no constraint. Note that neither the type attribute nor the linked variable, if any, are changed. |
|
Reset this object so that it has neither a linked variable nor a constraint. This method has no effect if the object has no linked variable or constraint. Note that the type attribute is not changed. |
|
|
|
|
|
Return the type of the described option. Note that the option is a flag if it is of type |
|
|
Nested trait declaration for |
Data Members
Name |
Description |
memory allocator (held) |
|
constraint on the option value |
|
type of the option value |
|
|
|
Address of the variable linked to this option value (held, not owned). |
Non-Member Functions
Name |
Description |
Return |
|
Return |
Created with MrDocs