| 1 |
mmeineke |
377 |
#ifndef __LINKEDCOMMAND_H__ |
| 2 |
|
|
#define __LINKEDCOMMAND_H__ |
| 3 |
|
|
|
| 4 |
gezelter |
828 |
#include <stdlib.h> |
| 5 |
mmeineke |
377 |
|
| 6 |
|
|
class LinkedCommand{ |
| 7 |
|
|
|
| 8 |
|
|
public: |
| 9 |
|
|
|
| 10 |
|
|
LinkedCommand(){ next = NULL; token = 0; } |
| 11 |
|
|
~LinkedCommand(){ if( next != NULL ) delete next; } |
| 12 |
|
|
|
| 13 |
|
|
int match( char* the_text ); |
| 14 |
|
|
void setValues( char* the_text, int the_token ); |
| 15 |
|
|
void setNext( LinkedCommand* the_next ){ next = the_next; } |
| 16 |
|
|
LinkedCommand* getNext( void ){ return next; } |
| 17 |
|
|
|
| 18 |
|
|
private: |
| 19 |
|
|
|
| 20 |
|
|
LinkedCommand* next; |
| 21 |
|
|
char text[100]; |
| 22 |
|
|
int token; |
| 23 |
|
|
}; |
| 24 |
|
|
|
| 25 |
|
|
#endif |