Rev | Line | |
---|
[1] | 1 | //----------------------------------------------------------- |
---|
| 2 | // Copyright Christian Arnault LAL-Orsay CNRS |
---|
| 3 | // arnault@lal.in2p3.fr |
---|
| 4 | // See the complete license in cmt_license.txt "http://www.cecill.info". |
---|
| 5 | //----------------------------------------------------------- |
---|
| 6 | |
---|
| 7 | #ifndef __cmt_cmtpath_pattern_h__ |
---|
| 8 | #define __cmt_cmtpath_pattern_h__ |
---|
| 9 | |
---|
| 10 | #include "cmt_pattern.h" |
---|
| 11 | |
---|
| 12 | class CmtPathPattern |
---|
| 13 | { |
---|
| 14 | public: |
---|
| 15 | typedef cmt_vector<CmtPathPattern> CmtPathPatternVector; |
---|
| 16 | typedef cmt_vector<CmtPathPattern*> CmtPathPatternPtrVector; |
---|
| 17 | |
---|
| 18 | static void action (const CmtSystem::cmt_string_vector& words, Use* use); |
---|
| 19 | |
---|
| 20 | static void add (const CmtSystem::cmt_string_vector& words, Use* use); |
---|
| 21 | |
---|
| 22 | static int pattern_number (); |
---|
| 23 | static CmtPathPattern& pattern (int index); |
---|
| 24 | static void clear_all (); |
---|
| 25 | static CmtPathPatternVector& patterns (); |
---|
| 26 | |
---|
| 27 | static void apply_all (); |
---|
| 28 | static void show_all (); |
---|
| 29 | |
---|
| 30 | public: |
---|
| 31 | CmtPathPattern (); |
---|
| 32 | ~CmtPathPattern (); |
---|
| 33 | |
---|
| 34 | void clear (); |
---|
| 35 | void apply () const; |
---|
| 36 | void expand (cmt_string& line, const cmt_string& path, const cmt_string& project) const; |
---|
| 37 | |
---|
| 38 | cmt_string line; |
---|
| 39 | Use* use; |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.