1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
4 //---------------------------------------------------------------------
6 \file sniffer/RPatternList.h
7 MIME sniffer rpattern list declarations
9 #ifndef _SNIFFER_R_PATTERN_LIST_H
10 #define _SNIFFER_R_PATTERN_LIST_H
12 #include <sniffer/DisjList.h>
24 //! A list of patterns, each of which is to be searched over its own specified range.
25 class RPatternList
: public DisjList
{
28 virtual ~RPatternList();
30 status_t
InitCheck() const;
33 virtual bool Sniff(BPositionIO
*data
) const;
34 virtual ssize_t
BytesNeeded() const;
35 void Add(RPattern
*rpattern
);
37 std::vector
<RPattern
*> fList
;
40 }; // namespace Sniffer
41 }; // namespace Storage
42 }; // namespace BPrivate
44 #endif // _SNIFFER_R_PATTERN_LIST_H