summaryrefslogtreecommitdiff
path: root/src/mask.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mask.h')
-rw-r--r--src/mask.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mask.h b/src/mask.h
index 23c5cedf..670c1807 100644
--- a/src/mask.h
+++ b/src/mask.h
@@ -72,10 +72,18 @@ public:
mask_t& operator=(const string& other);
+ bool operator==(const mask_t& other) const {
+ return expr == other.expr;
+ }
+
bool match(const string& str) const {
return boost::regex_search(str, expr);
}
+ bool empty() const {
+ return expr.empty();
+ }
+
void read(const char *& data);
void write(std::ostream& out) const;
};