2002-07-29 06:57:11 +00:00
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// This software is part of the OpenBeOS distribution and is covered
|
|
|
|
// by the OpenBeOS license.
|
|
|
|
//---------------------------------------------------------------------
|
|
|
|
/*!
|
|
|
|
\file sniffer/Range.h
|
|
|
|
MIME sniffer range declarations
|
|
|
|
*/
|
|
|
|
#ifndef _sk_sniffer_range_h_
|
|
|
|
#define _sk_sniffer_range_h_
|
|
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
|
|
namespace Sniffer {
|
|
|
|
|
2002-08-06 08:30:44 +00:00
|
|
|
class Err;
|
|
|
|
|
2002-07-29 06:57:11 +00:00
|
|
|
class Range {
|
|
|
|
public:
|
|
|
|
Range(int32 start, int32 end);
|
2002-08-06 08:30:44 +00:00
|
|
|
|
|
|
|
status_t InitCheck() const;
|
|
|
|
Err* GetErr() const;
|
2002-07-29 06:57:11 +00:00
|
|
|
|
|
|
|
int32 Start() const;
|
|
|
|
int32 End() const;
|
|
|
|
|
|
|
|
void SetTo(int32 start, int32 end);
|
|
|
|
private:
|
|
|
|
int32 fStart;
|
|
|
|
int32 fEnd;
|
2002-08-06 08:30:44 +00:00
|
|
|
status_t fCStatus;
|
2002-07-29 06:57:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // _sk_sniffer_range_h_
|