Files
haiku-beta6/headers/private/storage/sniffer/RPattern.h
T
Tyler Dauwalder 82b7566525 Updated header guards to Be, Inc. style.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-12 07:24:02 +00:00

38 lines
792 B
C++

//----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
//---------------------------------------------------------------------
/*!
\file sniffer/RPattern.h
Mime Sniffer RPattern declarations
*/
#ifndef _SNIFFER_R_PATTERN_H
#define _SNIFFER_R_PATTERN_H
#include <sniffer/Range.h>
class BPositionIO;
namespace Sniffer {
class Err;
class Pattern;
//! A Pattern and a Range, bundled into one.
class RPattern {
public:
RPattern(Range range, Pattern *pattern);
~RPattern();
status_t InitCheck() const;
Err* GetErr() const;
bool Sniff(BPositionIO *data, bool caseInsensitive) const;
private:
Range fRange;
Pattern *fPattern;
};
}
#endif // _SNIFFER_R_PATTERN_H