My Project
 All Classes Namespaces Functions Pages
ftokenize.h
1 #ifndef FTOKENIZE_H
2 #define FTOKENIZE_H
3 
4 #include <iostream>
5 #include <fstream>
6 #include <sstream>
7 
8 #include "stokenize.h"
9 //#include "../List_Functions/list.h"
10 
11 using namespace std;
12 
13 /*
14  * an interface to get the next token from a string object.
15  * WHITE_SPACE, END_OF-LINE, ALPHABETIC, NUMERICAL, OPERATORS, PUNCTUATION, MATCHED_PAIRS
16  */
17 class FTokenize
18 {
19 private:
20  STokenize mStk;//store blocks of token
21  ifstream mFin;
22  int mPos;
23  bool mMore;
24 
25 public:
26  FTokenize();
27  FTokenize(const char *fname);
28  Token nextToken();
29  void setFile(const char *f);
30 
31 
32  bool getNewBlock();
33  bool More();
34  int Pos();
35  int BlockPos();
36 
37  ~FTokenize();
38 };
39 
40 #endif // FTOKENIZE_H
Definition: stokenize.h:13
Definition: ftokenize.h:17
Definition: token.h:41