source: Evidence/DIM/tokenstring.hxx@ 138

Last change on this file since 138 was 127, checked in by ogrimm, 15 years ago
First commit of Evidence control system core components
File size: 536 bytes
Line 
1#ifndef __TOKENSTRINGDEFS
2#define __TOKENSTRINGDEFS
3#include <string.h>
4#include "dim_core.hxx"
5
6class DllExp TokenString
7{
8public:
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
21private:
22 void store_str(char *str);
23 char *token_buff;
24 char *token_ptr;
25 char *curr_token_ptr;
26 char *push_token_ptr;
27 char *token_seps;
28 int n_tokens;
29};
30
31#endif
Note: See TracBrowser for help on using the repository browser.