haiku/headers/private/storage/sniffer/Range.h
Tyler Dauwalder 09d84e61b6 + Changed StorageKit namespace to BPrivate::Storage
+ Changed Sniffer namespace to BPrivate::Storage::Sniffer


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-12 08:42:01 +00:00

45 lines
893 B
C++

//----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
//---------------------------------------------------------------------
/*!
\file sniffer/Range.h
MIME sniffer range declarations
*/
#ifndef _SNIFFER_RANGE_H
#define _SNIFFER_RANGE_H
#include <SupportDefs.h>
namespace BPrivate {
namespace Storage {
namespace Sniffer {
class Err;
//! A range of byte offsets from which to check a pattern against a data stream.
class Range {
public:
Range(int32 start, int32 end);
status_t InitCheck() const;
Err* GetErr() const;
int32 Start() const;
int32 End() const;
void SetTo(int32 start, int32 end);
private:
int32 fStart;
int32 fEnd;
status_t fCStatus;
};
}; // namespace Sniffer
}; // namespace Storage
}; // namespace BPrivate
#endif // _SNIFFER_RANGE_H