mirror of
https://review.haiku-os.org/haiku
synced 2025-01-24 07:14:48 +01:00
74cd43ec44
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@601 a95241bf-73f2-0310-859d-f6bbb57e9c96
38 lines
807 B
C++
38 lines
807 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 _sk_sniffer_r_pattern_h_
|
|
#define _sk_sniffer_r_pattern_h_
|
|
|
|
#include <sniffer/Range.h>
|
|
|
|
class BPositionIO;
|
|
|
|
namespace Sniffer {
|
|
|
|
class Err;
|
|
class Pattern;
|
|
|
|
//! Abstract class definining an interface for sniffing BFile objects
|
|
class RPattern {
|
|
public:
|
|
RPattern(Range range, Pattern *pattern);
|
|
~RPattern();
|
|
|
|
status_t InitCheck() const;
|
|
Err* GetErr() const;
|
|
|
|
bool Sniff(BPositionIO *data) const;
|
|
private:
|
|
Range fRange;
|
|
Pattern *fPattern;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // _sk_sniffer_r_pattern_h_
|