+ Switched to std::vector in favor of BList
+ Added a few minor tweaks git-svn-id: file:///srv/svn/repos/haiku/trunk/current@532 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -13,19 +13,27 @@ using namespace Sniffer;
|
||||
|
||||
Rule::Rule()
|
||||
: fPriority(0.0)
|
||||
, fExprList(NULL)
|
||||
{
|
||||
// Not implemented
|
||||
}
|
||||
|
||||
Rule::Rule(const char *rule)
|
||||
: fPriority(0.0)
|
||||
{
|
||||
// Parse the rule here ???
|
||||
Rule::~Rule() {
|
||||
Unset();
|
||||
}
|
||||
|
||||
status_t
|
||||
Rule::SetTo(const char *rule) {
|
||||
return B_ERROR; // Not implemented
|
||||
void
|
||||
Rule::Unset() {
|
||||
if (fExprList){
|
||||
delete fExprList;
|
||||
fExprList = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Rule::SetTo(double priority, ExprList* list) {
|
||||
Unset();
|
||||
fPriority = priority;
|
||||
fExprList = list;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user