#ifndef __cmt_cmtpath_pattern_h__ #define __cmt_cmtpath_pattern_h__ #include "cmt_pattern.h" class CmtPathPattern { public: typedef cmt_vector CmtPathPatternVector; typedef cmt_vector CmtPathPatternPtrVector; static void action (const CmtSystem::cmt_string_vector& words, Use* use); static void add (const CmtSystem::cmt_string_vector& words, Use* use); static int pattern_number (); static CmtPathPattern& pattern (int index); static void clear_all (); static CmtPathPatternVector& patterns (); static void apply_all (); static void show_all (); public: CmtPathPattern (); ~CmtPathPattern (); void clear (); void apply () const; void expand (cmt_string& line, const cmt_string& path) const; CmtSystem::cmt_string_vector words; Use* use; }; #endif