Skip to content
Snippets Groups Projects
Commit d2f021f8 authored by Adam Wardynski's avatar Adam Wardynski
Browse files

MatchAction - ABC for actions of match rules.

parent f88f97eb
Branches
No related merge requests found
#ifndef LIBWCCL_OPS_MATCH_MATCHACTION_H
#define LIBWCCL_OPS_MATCH_MATCHACTION_H
namespace Wccl {
/**
* Abstract base class for actions in WCCL match rules
*/
class MatchAction : public Expression
{
public:
/**
* @returns Name of the action.
*/
virtual std::string name() const = 0;
/**
* Executes the action for the given execution context.
*/
virtual void execute(const ActionExecContext& context) const = 0;
};
} /* end ns Wccl */
#endif // LIBWCCL_OPS_MATCH_MATCHACTION_H
......@@ -8,7 +8,7 @@
namespace Wccl {
/**
* Abstract base class for actions in WCCL rules
* Abstract base class for actions in WCCL tagging rules
*/
class TagAction : public Expression
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment