Tyler Dauwalder 74cd43ec44 New mime sniffer support classes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 08:25:41 +00:00

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_