source: CMT/v1r14p20031120/src/cmt_cmtpath_pattern.h @ 1

Last change on this file since 1 was 1, checked in by arnault, 19 years ago

Import all tags

File size: 861 bytes
Line 
1#ifndef __cmt_cmtpath_pattern_h__
2#define __cmt_cmtpath_pattern_h__
3
4#include "cmt_pattern.h"
5
6class CmtPathPattern
7{
8public:
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
24public:
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.