#include <command.h>
Public Member Functions | |
| HaString | RollHistory (int step) |
| Retrieve a command from the history. | |
| void | CommandError (const char *error) |
| int | LookUpKeyword () |
| Get an integer value for a current token(TokenIdent) return IdentTok if keyword is not registered in Keywords map. | |
| int | FetchToken () |
| Get Next token in the line after TokenPtr. | |
| int | NextIf (int token, const char *error) |
| int | ParseColour (int &RVal, int &GVal, int &BVal) |
| Set RGB value corresponging to the colour. | |
| Expr * | ParseRange (int neg) |
| Expr * | ParseExpression (int level, HaMolSet *pmset) |
| Parse str_parse and form a logical expression in QParse. | |
Static Public Member Functions | |
| int | InitKeywords () |
| function to initiate map of keywords | |
| int | RegisterKeyword (HaString keyw, const int itok) |
| Register(add) keyword to the Keywords map. | |
Public Attributes | |
| int | CurToken |
| the integer value of the token in Keywords map | |
| char | CurLine [MAXBUFFLEN] |
| Line with the command to process. | |
| deque< HaString > | cmd_history |
| History of commands entered. | |
| int | cur_history_cmd |
| Long | TokenValue |
| Integer value of the current token. | |
| double | TokenValueFloat |
| Float value of the current token. | |
| HaString | TokenIdent |
| String value of the current token (if in "" quotes). | |
| char * | TokenStart |
| Starting position of the string token (if without "" quotes). | |
| char * | TokenPtr |
| Current pointer in the line to read the command. | |
Static Public Attributes | |
| int | max_history_save = 1000 |
|
map< HaString, int, less< HaString > > | Keywords |
| Map of Keywords. | |
| int | keys_init = FALSE |
| flag to indicate that keywords map was initiated | |
1.3.6