Files
haiku-beta6/headers/private/storage/sniffer/RPatternList.h
T

46 lines
1016 B
C++
Raw Normal View History

2002-08-06 08:25:41 +00:00
//----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
//---------------------------------------------------------------------
/*!
\file sniffer/RPatternList.h
MIME sniffer rpattern list declarations
*/
2002-08-12 07:24:02 +00:00
#ifndef _SNIFFER_R_PATTERN_LIST_H
#define _SNIFFER_R_PATTERN_LIST_H
2002-08-06 08:25:41 +00:00
#include <sniffer/DisjList.h>
2002-08-06 08:25:41 +00:00
#include <vector>
class BPositionIO;
namespace BPrivate {
namespace Storage {
2002-08-06 08:25:41 +00:00
namespace Sniffer {
class Err;
class RPattern;
2002-08-08 07:20:47 +00:00
//! A list of patterns, each of which is to be searched over its own specified range.
class RPatternList : public DisjList {
2002-08-06 08:25:41 +00:00
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;
};
}; // namespace Sniffer
}; // namespace Storage
}; // namespace BPrivate
#endif // _SNIFFER_R_PATTERN_LIST_H
2002-08-06 08:25:41 +00:00