Adds method init to Operator class

This commit is contained in:
Felipe Zimmerle
2015-07-27 22:43:45 -03:00
parent 7b4554216e
commit c2d33823f5
3 changed files with 11 additions and 2 deletions

View File

@@ -35,11 +35,12 @@ class Operator {
param(param),
negation(negation) { }
virtual ~Operator() { }
std::string op;
std::string param;
bool negation;
virtual bool init(const char **error) { return true; }
virtual bool evaluate(Assay *assay);
virtual bool evaluate(Assay *assay, const std::string &str);
static Operator *instantiate(std::string op);