summaryrefslogtreecommitdiff
path: root/mask.h
diff options
context:
space:
mode:
Diffstat (limited to 'mask.h')
-rw-r--r--mask.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/mask.h b/mask.h
index daae014f..0cfb160d 100644
--- a/mask.h
+++ b/mask.h
@@ -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;