Rev | Line | |
---|
[1] | 1 | #ifndef __cmt_cmtpath_pattern_h__ |
---|
| 2 | #define __cmt_cmtpath_pattern_h__ |
---|
| 3 | |
---|
| 4 | #include "cmt_pattern.h" |
---|
| 5 | |
---|
| 6 | class CmtPathPattern |
---|
| 7 | { |
---|
| 8 | public: |
---|
| 9 | typedef cmt_vector<CmtPathPattern> CmtPathPatternVector; |
---|
| 10 | typedef cmt_vector<CmtPathPattern*> CmtPathPatternPtrVector; |
---|
| 11 | |
---|
| 12 | static void action (const CmtSystem::cmt_string_vector& words, Use* use); |
---|
| 13 | |
---|
| 14 | static void add (const CmtSystem::cmt_string_vector& words, Use* use); |
---|
| 15 | |
---|
| 16 | static int pattern_number (); |
---|
| 17 | static CmtPathPattern& pattern (int index); |
---|
| 18 | static void clear_all (); |
---|
| 19 | static CmtPathPatternVector& patterns (); |
---|
| 20 | |
---|
| 21 | static void apply_all (); |
---|
| 22 | static void show_all (); |
---|
| 23 | |
---|
| 24 | public: |
---|
| 25 | CmtPathPattern (); |
---|
| 26 | ~CmtPathPattern (); |
---|
| 27 | |
---|
| 28 | void clear (); |
---|
| 29 | void apply () const; |
---|
| 30 | void expand (cmt_string& line, const cmt_string& path) const; |
---|
| 31 | |
---|
| 32 | CmtSystem::cmt_string_vector words; |
---|
| 33 | Use* use; |
---|
| 34 | }; |
---|
| 35 | |
---|
| 36 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.