source: CMT/v1r16p20040901/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: 1.1 KB
Line 
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
12class CmtPathPattern
13{
14public:
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
30public:
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.