LOCommandToken Class Reference
A command token is an object to represent a specifica part of a command string.
More...
#import <LOCommandToken.h>
Detailed Description
A command token is an object to represent a specifica part of a command string.
A Command string is broken up into these token, where they are processed by the command processor
Member Function Documentation
Convenience function to get a ready made token of type At.
True if a numerical value has been set via the button tokeniser, and more than 3 digits were used after the decimal place.
- See also:
- - setOverflow:
Convenience function to get a ready made token of type Dot.
True if the numeric value has a decimal point.
- See also:
- - setDP:
- (id) initWithType: |
|
(LOCommandTokenType) |
theType |
|
|
Initilise a token with its type.
- (id) initWithType: |
|
(LOCommandTokenType) |
theType |
andValue: |
|
(float) |
theValue | |
|
|
| | |
Initilise a token with its type and value.
Convenience function to get a ready made token of type Last.
Convenience function to get a ready made token of type Minus.
Convenience function to get a ready made token of type Number.
Convenience function to get a ready made token of type Off.
Convenience function to get a ready made token of type On.
Convenience function to get a ready made token of type Plus.
Convenience function to get a ready made token of type Release.
- (void) setDP: |
|
(BOOL) |
flag |
|
|
Sets if a numeric token has a decima point.
- See also:
- hasDP
- (void) setLeadingZero: |
|
(BOOL) |
flag |
|
|
- (void) setOverflow: |
|
(BOOL) |
flag |
|
|
- (void) setStringValue: |
|
(NSString *) |
string |
|
|
When a custom token type value is used, you will need to set the string value to be returned by stringValue.
- See also:
- stringValue
- (void) setType: |
|
(LOCommandTokenType) |
newType |
|
|
Allows you to change the token type.
- (void) setValue: |
|
(float) |
theValue |
|
|
- (void) setValue: |
|
(float) |
theValue |
withPlaces: |
|
(int) |
thePlaces | |
|
|
| | |
Set the tokens value, and the number of digits to show after the decimla place when viewing as a string.
- See also:
- value:
- setValue:
Convenience function to get a ready made token of type Solo.
The string value of this token, as found in a command line.
In the instance of a number type token the minimum number of decimal places that can be used are included. In any event no more than 3 decimal places wil be used, and should the value have more than 3 decimal places they will always be rounded down.
- See also:
- - setStringValue:
Convenience function to get a ready made token of type Thru.
- (LOCommandTokenType) type |
|
|
|
|
The documentation for this class was generated from the following files: