Line | |
---|
1 | #ifndef __cmt_script_h__ |
---|
2 | #define __cmt_script_h__ |
---|
3 | |
---|
4 | #include "cmt_parser.h" |
---|
5 | #include "cmt_system.h" |
---|
6 | |
---|
7 | class Script |
---|
8 | { |
---|
9 | public: |
---|
10 | typedef cmt_vector<Script> ScriptVector; |
---|
11 | |
---|
12 | static void action (const CmtSystem::cmt_string_vector& words, |
---|
13 | ScriptType type, |
---|
14 | Use* use); |
---|
15 | static Script* find (const cmt_string& name, Use* use); |
---|
16 | static Script* add (const cmt_string& name, ScriptType type, Use* use); |
---|
17 | static void all_print_clean (PrintMode mode); |
---|
18 | static void all_print (PrintMode mode); |
---|
19 | static void clear_all (); |
---|
20 | |
---|
21 | public: |
---|
22 | Script (); |
---|
23 | ~Script (); |
---|
24 | int print (PrintMode mode, const Use* use); |
---|
25 | |
---|
26 | cmt_string name; |
---|
27 | ScriptType type; |
---|
28 | }; |
---|
29 | |
---|
30 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.