diff options
Diffstat (limited to 'mask.h')
-rw-r--r-- | mask.h | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -38,12 +38,19 @@ namespace ledger { class mask_t { - public: + mask_t(); + +public: bool exclude; boost::regex expr; explicit mask_t(const string& pattern); - mask_t(const mask_t& m) : exclude(m.exclude), expr(m.expr) {} + mask_t(const mask_t& m) : exclude(m.exclude), expr(m.expr) { + TRACE_CTOR(mask_t, "copy"); + } + ~mask_t() throw() { + TRACE_DTOR(mask_t); + } bool match(const string& str) const { return boost::regex_match(str, expr) && ! exclude; |