ostream& operator<<(ostream& out, const mon_rwxa_t& p);
struct StringConstraint {
+ enum MatchType {
+ MATCH_TYPE_NONE,
+ MATCH_TYPE_EQUAL,
+ MATCH_TYPE_PREFIX,
+ MATCH_TYPE_REGEX
+ };
+
+ MatchType match_type = MATCH_TYPE_NONE;
string value;
- string prefix;
StringConstraint() {}
- StringConstraint(string a, string b)
- : value(std::move(a)), prefix(std::move(b)) {}
+ StringConstraint(MatchType match_type, string value)
+ : match_type(match_type), value(value) {
+ }
};
ostream& operator<<(ostream& out, const StringConstraint& c);