Contents
Inheritance:
Constructors:
Members:
Motivation
Constructors
BasicCompactToken
Allocates memory and sets members to initial values: bufferln=128; writePos=0; token_type=0;.
Constructor:
BasicCompactToken()
Factory Method:
AbsBasicCompactToken *AbsBasicCompactTokenInterface::createBasicCompactToken()
Wrapper Class:
BasicCompactTokenWrapper()
The static method
AbsBasicCompactTokenInterface::createBasicCompactToken creates a new instance of class BasicCompactToken.
Return value:Returns an instance of
BasicCompactToken.
Members
buffer
Speicherbereich in den das aktuelle Token geschrieben wird.
Signature:
char *buffer;
Setter- and getter-methods:
Use the methods
get_buffer() and
set_buffer(char *) to get and set the value of this member variable.
bufferln
The lenth of allocated memory for
buffer.
Signature:
int bufferln;
Setter- and getter-methods:
Use the methods
get_bufferln() and
set_bufferln(int) to get and set the value of this member variable.
writePos
Aktuelle Schreibeposition in
buffer. (Dies enspricht der Länge des Tokens.)
Signature:
int writePos;
Setter- and getter-methods:
Use the methods
get_writePos() and
set_writePos(int) to get and set the value of this member variable.
token_type
Der Typ des Tokens.
Signature:
int token_type;
Setter- and getter-methods:
Use the methods
get_token_type() and
set_token_type(int) to get and set the value of this member variable.