haiku/headers/private/storage/sniffer/PatternList.h
Tyler Dauwalder 10db8711a8 Added some documentation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@648 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 07:20:47 +00:00

41 lines
932 B
C++

//----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
//---------------------------------------------------------------------
/*!
\file sniffer/PatternList.h
MIME sniffer pattern list declarations
*/
#ifndef _sk_sniffer_pattern_list_h_
#define _sk_sniffer_pattern_list_h_
#include <sniffer/Expr.h>
#include <sniffer/Range.h>
#include <vector>
class BPositionIO;
namespace Sniffer {
class Err;
class Pattern;
//! A list of patterns, all of which are to be searched over the same range.
class PatternList : public Expr {
public:
PatternList(Range range);
virtual ~PatternList();
status_t InitCheck() const;
Err* GetErr() const;
virtual bool Sniff(BPositionIO *data) const;
void Add(Pattern *pattern);
private:
std::vector<Pattern*> fList;
Range fRange;
};
}
#endif // _sk_sniffer_pattern_list_h_