18 std::vector<std::string>
splitPath(std::string path);
20 bool matchGlob(std::string target, std::string pattern);
22 std::pair<bool, json>
validateRule(std::string ruleSetName,
const json &rule);
34 std::optional<std::pair<std::string, json>>
matchRuleSet(std::string ruleSetName,
const Event &e,
const RoomModel &room)
const;
Definition: location.hpp:10
std::pair< bool, json > validateRule(std::string ruleSetName, const json &rule)
Definition: push-rules-desc.cpp:145
nlohmann::json json
Definition: jsonwrap.hpp:20
Event validatePushRules(const Event &e)
Definition: push-rules-desc.cpp:169
std::vector< std::string > splitPath(std::string path)
Definition: push-rules-desc.cpp:35
bool matchGlob(std::string target, std::string pattern)
Definition: push-rules-desc.cpp:46
Describe what actions are to be taken for a specific event.
Definition: push-rules-desc.hpp:26
Definition: push-rules-desc-p.hpp:27
Event pushRulesEvent
Definition: push-rules-desc-p.hpp:30
bool matchP(std::string ruleSetName, const json &rule, const Event &e, const RoomModel &room) const
Definition: push-rules-desc.cpp:228
PushAction handleRule(std::string ruleSetName, const json &rule, const Event &e, const RoomModel &room) const
Definition: push-rules-desc.cpp:279
PushRulesDescPrivate(const Event &e)
Definition: push-rules-desc.cpp:202
std::optional< std::pair< std::string, json > > matchRule(const Event &e, const RoomModel &room) const
Definition: push-rules-desc.cpp:206
std::optional< std::pair< std::string, json > > matchRuleSet(std::string ruleSetName, const Event &e, const RoomModel &room) const
Definition: push-rules-desc.cpp:217
Definition: room-model.hpp:217