00001 #ifndef CAFE_FILEPATTERN_HPP__ 00002 #define CAFE_FILEPATTERN_HPP__ 00003 00004 #include <string> 00005 00006 namespace cafe { 00007 00030 class FilePattern { 00031 public: 00032 FilePattern(); 00033 FilePattern(const std::string& pattern); 00034 void set(const std::string& pattern); 00035 std::string replace(const std::string& input); 00036 private: 00037 std::string _pattern; 00038 unsigned int _counter; 00039 }; 00040 00041 } 00042 00043 #endif // CAFE_FILEPATTERN_HPP__
1.3.4