FACT++  1.0
tokenstring.hxx
Go to the documentation of this file.
1 #ifndef __TOKENSTRINGDEFS
2 #define __TOKENSTRINGDEFS
3 #include <string.h>
4 #include "dim_core.hxx"
5 
7 {
8 public:
9 
10  TokenString(char *str);
11  TokenString(char *str, char *seps);
12  ~TokenString();
13  int getToken(char *&token);
14  void pushToken();
15  void popToken();
16  int cmpToken(char *str);
17  int firstToken();
18  int getNTokens();
19  int getNTokens(char *str);
20 
21 private:
22  void store_str(char *str);
23  char *token_buff;
24  char *token_ptr;
27  char *token_seps;
28  int n_tokens;
29 };
30 
31 #endif
char * curr_token_ptr
Definition: tokenstring.hxx:25
char * push_token_ptr
Definition: tokenstring.hxx:26
char str[80]
Definition: test_client.c:7
char * token_ptr
Definition: tokenstring.hxx:24
#define DllExp
Definition: dim_common.h:93
char * token_seps
Definition: tokenstring.hxx:27
char * token_buff
Definition: tokenstring.hxx:23