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

46 lines
937 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/RPattern.h
Mime Sniffer RPattern declarations
*/
2002-08-12 07:24:02 +00:00
#ifndef _SNIFFER_R_PATTERN_H
#define _SNIFFER_R_PATTERN_H
2002-08-06 08:25:41 +00:00
#include <sniffer/Range.h>
class BPositionIO;
namespace BPrivate {
namespace Storage {
2002-08-06 08:25:41 +00:00
namespace Sniffer {
class Err;
class Pattern;
2002-08-08 07:20:47 +00:00
//! A Pattern and a Range, bundled into one.
2002-08-06 08:25:41 +00:00
class RPattern {
public:
RPattern(Range range, Pattern *pattern);
~RPattern();
status_t InitCheck() const;
Err* GetErr() const;
bool Sniff(BPositionIO *data, bool caseInsensitive) const;
ssize_t BytesNeeded() const;
2002-08-06 08:25:41 +00:00
private:
Range fRange;
Pattern *fPattern;
};
}; // namespace Sniffer
}; // namespace Storage
}; // namespace BPrivate
#endif // _SNIFFER_R_PATTERN_H
2002-08-06 08:25:41 +00:00