93d145bb01
+ Renamed Expr class to DisjList, which is more descriptive as to its function + Added ' and " to the list of allowed characters in an unquoted string. + Added updated sniffer rule grammar to doxygen for the Parser class git-svn-id: file:///srv/svn/repos/haiku/trunk/current@685 a95241bf-73f2-0310-859d-f6bbb57e9c96
39 lines
913 B
C++
39 lines
913 B
C++
//----------------------------------------------------------------------
|
|
// This software is part of the OpenBeOS distribution and is covered
|
|
// by the OpenBeOS license.
|
|
//---------------------------------------------------------------------
|
|
/*!
|
|
\file sniffer/RPatternList.h
|
|
MIME sniffer rpattern list declarations
|
|
*/
|
|
#ifndef _sk_sniffer_r_pattern_list_h_
|
|
#define _sk_sniffer_r_pattern_list_h_
|
|
|
|
#include <sniffer/DisjList.h>
|
|
#include <vector>
|
|
|
|
class BPositionIO;
|
|
|
|
namespace Sniffer {
|
|
|
|
class Err;
|
|
class RPattern;
|
|
|
|
//! A list of patterns, each of which is to be searched over its own specified range.
|
|
class RPatternList : public DisjList {
|
|
public:
|
|
RPatternList();
|
|
virtual ~RPatternList();
|
|
|
|
status_t InitCheck() const;
|
|
Err* GetErr() const;
|
|
|
|
virtual bool Sniff(BPositionIO *data) const;
|
|
void Add(RPattern *rpattern);
|
|
private:
|
|
std::vector<RPattern*> fList;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // _sk_sniffer_r_pattern_list_h_
|