mirror of
https://review.haiku-os.org/haiku
synced 2025-01-24 15:24:50 +01:00
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_
|