+ Added InitCheck()
+ Added Priority() + Added Sniff() + Replaced ExprList typedef with plain old std::vector<Expr*> so I wouldn't forget what the hell kind of list I was working with. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@607 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,25 +9,32 @@
|
||||
#ifndef _sk_sniffer_rule_h_
|
||||
#define _sk_sniffer_rule_h_
|
||||
|
||||
#include <SupportDefs.h>
|
||||
#include <vector>
|
||||
|
||||
class BPositionIO;
|
||||
|
||||
namespace Sniffer {
|
||||
|
||||
class Expr;
|
||||
typedef std::vector<Expr*> ExprList;
|
||||
|
||||
class Rule {
|
||||
public:
|
||||
Rule();
|
||||
~Rule();
|
||||
|
||||
status_t InitCheck() const;
|
||||
|
||||
double Priority() const;
|
||||
bool Sniff(BPositionIO *data) const;
|
||||
private:
|
||||
friend class Parser;
|
||||
|
||||
void Unset();
|
||||
void SetTo(double priority, ExprList* list);
|
||||
void SetTo(double priority, std::vector<Expr*>* list);
|
||||
|
||||
double fPriority;
|
||||
ExprList *fExprList;
|
||||
std::vector<Expr*> *fExprList;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user