From 8276b51f5692796bfdf75dd64f709e0de1c7caaf Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 31 Jul 2008 04:28:58 -0400 Subject: A new binary_cache_t object has been creating to manage saving and restoring a Ledger session from a cache file. It doesn't work at all yet, though at least the major structures are in place now. --- mask.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mask.h') diff --git a/mask.h b/mask.h index 95ab214a..538316be 100644 --- a/mask.h +++ b/mask.h @@ -45,6 +45,7 @@ public: boost::regex expr; explicit mask_t(const string& pattern); + mask_t(const mask_t& m) : exclude(m.exclude), expr(m.expr) { TRACE_CTOR(mask_t, "copy"); } @@ -52,9 +53,14 @@ public: TRACE_DTOR(mask_t); } + mask_t& operator=(const string& other); + bool match(const string& str) const { return boost::regex_match(str, expr) && ! exclude; } + + void read(const char *& data); + void write(std::ostream& out) const; }; } // namespace ledger -- cgit v1.2.3