#include <Tokenizer.h>
Inheritance diagram for clawsoft::Tokenizer:
Public Methods | |
Tokenizer (char *string, char *delim) | |
This constructor takes two arguments: string: is the string to be splitted delim: the delimiter. | |
Tokenizer (String string, String delim) | |
This constructor takes two arguments: string: is the string to be splitted delim: the delimiter. | |
~Tokenizer () | |
This destructor takes charge of releasing all the memory allocated by all the private members. | |
const String & | next () |
When called returns the next token in the string. | |
const char * | getClassName () |
Returns the name of the current class. | |
Static Public Methods | |
int | installedCPUs () |
This will return how many CPUs are installed in the system. | |
double | cpuSpeed () |
This will return the CPU speed in megahertz. | |
int | totalMemory () |
Will return the total amount of system memory. | |
int | freeMemory () |
Will return the total amount of free system memory. | |
void | usleep (Uint32 usec) |
Will freeze the software for usec microseconds. | |
Protected Methods | |
char * | cnext () |
When called returns the next token in the string. | |
void | setClassName (const char *n) |
Call this method when you need to set the name of the class you're creating, typically in it's constructor, remember that you must set the classname for every class you create, that way you can have more information while debugging. | |
Private Attributes | |
char * | temp |
Reserved use. | |
char * | buffer |
Contains the string to be splitted. | |
char * | token |
Is a pointer to the las token obtained. | |
char * | delim |
Stores the delimiter. | |
String | str |
IS a string of the last token. |
|
This constructor takes two arguments: string: is the string to be splitted delim: the delimiter.
|
|
This constructor takes two arguments: string: is the string to be splitted delim: the delimiter.
|
|
This destructor takes charge of releasing all the memory allocated by all the private members.
|
|
When called returns the next token in the string.
|
|
This will return the CPU speed in megahertz.
|
|
Will return the total amount of free system memory.
|
|
Returns the name of the current class.
|
|
This will return how many CPUs are installed in the system.
|
|
When called returns the next token in the string.
|
|
Call this method when you need to set the name of the class you're creating, typically in it's constructor, remember that you must set the classname for every class you create, that way you can have more information while debugging.
|
|
Will return the total amount of system memory.
|
|
Will freeze the software for usec microseconds.
|
|
Contains the string to be splitted.
|
|
Stores the delimiter.
|
|
IS a string of the last token.
|
|
Reserved use.
|
|
Is a pointer to the las token obtained.
|
Authors:
Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara
Powered by: