|
G3D::Token Class ReferenceFor use with TextInput.
More...
#include <TextInput.h>
List of all members.
|
Public Types |
| enum | ExtendedType {
DOUBLE_QUOTED_TYPE,
SINGLE_QUOTED_TYPE,
SYMBOL_TYPE,
FLOATING_POINT_TYPE,
INTEGER_TYPE,
BOOLEAN_TYPE,
END_TYPE
} |
| enum | Type {
STRING = DOUBLE_QUOTED_TYPE,
SYMBOL = SYMBOL_TYPE,
NUMBER = FLOATING_POINT_TYPE,
BOOLEAN = BOOLEAN_TYPE,
END = END_TYPE
} |
Public Member Functions |
| bool | boolean () const |
| int | character () const |
| ExtendedType | extendedType () const |
| int | line () const |
| double | number () const |
| const std::string & | string () const |
| | Token (Type t, ExtendedType e, const std::string &s, bool b, int L, int c) |
| | Token (Type t, ExtendedType e, const std::string &s, int L, int c) |
| | Token () |
| Type | type () const |
Friends |
| class | TextInput |
Detailed Description
For use with TextInput.
Member Enumeration Documentation
More detailed type information than Type.
- Enumerator:
-
| DOUBLE_QUOTED_TYPE |
|
| SINGLE_QUOTED_TYPE |
|
| SYMBOL_TYPE |
|
| FLOATING_POINT_TYPE |
|
| INTEGER_TYPE |
|
| BOOLEAN_TYPE |
|
| END_TYPE |
|
Strings are enclosed in quotes, symbols are not.
- Enumerator:
-
| STRING |
|
| SYMBOL |
|
| NUMBER |
|
| BOOLEAN |
|
| END |
|
Constructor & Destructor Documentation
| G3D::Token::Token |
( |
|
) |
[inline] |
| G3D::Token::Token |
( |
Type |
t, |
|
|
ExtendedType |
e, |
|
|
const std::string & |
s, |
|
|
int |
L, |
|
|
int |
c | |
|
) |
| | [inline] |
| G3D::Token::Token |
( |
Type |
t, |
|
|
ExtendedType |
e, |
|
|
const std::string & |
s, |
|
|
bool |
b, |
|
|
int |
L, |
|
|
int |
c | |
|
) |
| | [inline] |
Member Function Documentation
| bool G3D::Token::boolean |
( |
|
) |
const [inline] |
| int G3D::Token::character |
( |
|
) |
const [inline] |
Starting character position in the input line from which this token was parsed.
Starts at 1.
| int G3D::Token::line |
( |
|
) |
const [inline] |
Starting line of the input from which this token was parsed.
Starts at 1.
| double G3D::Token::number |
( |
|
) |
const |
Return the numeric value for a number type, or zero if this is not a number type.
| const std::string& G3D::Token::string |
( |
|
) |
const [inline] |
The value of a single or double quote string (not including the quotes), the name of a symbol, or the exact textual representation of a number as parsed from the input.
| Type G3D::Token::type |
( |
|
) |
const [inline] |
Friends And Related Function Documentation
The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:48 2007 for G3D by
1.5.2
Hosted by
| |