diff options
Diffstat (limited to 'freevars.h')
-rw-r--r-- | freevars.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/freevars.h b/freevars.h index c92b9f5..f800220 100644 --- a/freevars.h +++ b/freevars.h | |||
@@ -1,19 +1,22 @@ | |||
1 | #include <map> | ||
2 | #include <string> | 1 | #include <string> |
3 | #include <vector> | 2 | #include <set> |
4 | 3 | ||
5 | #ifndef FREEVARS_H | 4 | #ifndef FREEVARS_H |
6 | #define FREEVARS_H | 5 | #define FREEVARS_H |
7 | 6 | ||
8 | class freevars | 7 | class word; |
8 | |||
9 | class freevar | ||
9 | { | 10 | { |
10 | public: | 11 | public: |
11 | freevars(); | 12 | freevar(word& w, std::string file); |
12 | void addVar(std::string name, std::string filename); | 13 | bool check(std::string f) const; |
13 | std::string parse(std::string in); | 14 | void add(std::string f); |
15 | word& getWord(); | ||
14 | 16 | ||
15 | private: | 17 | private: |
16 | std::map<std::string, std::vector<std::string>* >* vars; | 18 | word& w; |
19 | std::set<std::string> instances; | ||
17 | }; | 20 | }; |
18 | 21 | ||
19 | #endif \ No newline at end of file | 22 | #endif \ No newline at end of file |