Refactoring in the Rule class to make it more elegant

This commit is contained in:
Felipe Zimmerle
2019-02-25 20:22:38 -03:00
parent 4669387d1f
commit 9c0d5d104d
26 changed files with 199 additions and 219 deletions

View File

@@ -39,15 +39,7 @@ namespace actions {
class Action {
public:
explicit Action(const std::string& _action)
: m_isNone(false),
temporaryAction(false),
action_kind(2),
m_name(nullptr),
m_parser_payload("") {
set_name_and_payload(_action);
}
explicit Action(const std::string& _action, int kind)
Action(const std::string& _action, int kind = RunTimeOnlyIfMatchKind)
: m_isNone(false),
temporaryAction(false),
action_kind(kind),