00001 #ifndef MFEXTENSIONS_SUPPRESS_H
00002 #define MFEXTENSIONS_SUPPRESS_H
00003
00004 #include <boost/regex.hpp>
00005 #include <string>
00006
00007 typedef boost::regex regex_t;
00008 typedef boost::smatch smatch_t;
00009
00013 class suppress {
00014 public:
00019 explicit suppress(std::string const& name);
00020
00026 bool match(std::string const& name);
00027
00032 void use(bool flag) { in_use_ = flag; }
00033
00034 private:
00035 std::string name_;
00036 regex_t expr_;
00037 smatch_t what_;
00038 bool in_use_;
00039 };
00040
00041 #endif