This class is the abstract base class for all command keywords.
Constructor.
Argument | Type | Default | Description |
command | AFXCommand | Host command, or NULL to create a keyword not associated with a command. | |
name | String | Keyword name. | |
isRequired | Bool | False | True if the keyword is a required argument of the command. |
Activates the keyword; active keywords will be processed during command generation.
Deactivates the keyword; inactive keywords will not be processed during command generation.
Returns the command snippet of the keyword based on its current value.
Returns the keyword's variable initilization commands (part of the generated command string).
Returns the keyword type name.
Implemented in AFXBoolKeyword, AFXComSymConstKeyword, AFXComTableKeyword, AFXFloatKeyword, AFXIntKeyword, AFXObjectKeyword, AFXStringKeyword, AFXSymConstKeyword, AFXTogglableKeyword, AFXTupleKeyword, and AFXTableKeyword.
Returns the text string that represents the current keyword value.
Implemented in AFXBoolKeyword, AFXComSymConstKeyword, AFXComTableKeyword, AFXFloatKeyword, AFXIntKeyword, AFXObjectKeyword, AFXStringKeyword, AFXSymConstKeyword, AFXTogglableKeyword, and AFXTupleKeyword.
Returns True if the keyword is a required argument of the host command; or returns False if the keyword is optional.
Returns True if the keyword value differs from its previous value.
Implemented in AFXBoolKeyword, AFXComSymConstKeyword, AFXComTableKeyword, AFXFloatKeyword, AFXIntKeyword, AFXObjectKeyword, AFXStringKeyword, AFXTogglableKeyword, and AFXTupleKeyword.
Sets this object as a required keyword of the host command.
Argument | Type | Default | Description |
val | Bool |
Sets variable initialization commands needed by the keyword.
Argument | Type | Default | Description |
cmds | String |
Sets the keyword value to its default.
Argument | Type | Default | Description |
ignoreUnspecified | Bool | False | Ignore setting the value if the default is unspecified. |
Sets the keyword value to its previous value.
Implemented in AFXBoolKeyword, AFXComSymConstKeyword, AFXComTableKeyword, AFXFloatKeyword, AFXIntKeyword, AFXObjectKeyword, AFXStringKeyword, AFXTogglableKeyword, and AFXTupleKeyword.