1/*
2 * Copyright 2008, J��r��me Duval. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef ISTREAM_WRAPPER_H
6#define ISTREAM_WRAPPER_H
7
8#include <DataIO.h>
9#include <ImfIO.h>
10
11#include "StreamBuffer.h"
12
13using namespace Imf;
14
15class IStreamWrapper : public IStream {
16	public:
17		IStreamWrapper(const char *filename, BPositionIO *stream);
18		virtual ~IStreamWrapper();
19
20		virtual bool        read(char c[/*n*/], int n);
21		virtual Int64       tellg();
22		virtual void        seekg(Int64 pos);
23
24	private:
25		StreamBuffer fStream;
26};
27
28#endif	/* ISTREAM_WRAPPER_H */
29
30