-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStream.h
50 lines (37 loc) · 1.17 KB
/
Stream.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* HLLib
* Copyright (C) 2006-2010 Ryan Gregg
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later
* version.
*/
#ifndef STREAM_H
#define STREAM_H
#include "stdafx.h"
namespace HLLib
{
namespace Streams
{
class HLLIB_API IStream
{
public:
virtual ~IStream();
virtual HLStreamType GetType() const = 0;
virtual const hlChar *GetFileName() const = 0;
virtual hlBool GetOpened() const = 0;
virtual hlUInt GetMode() const = 0;
virtual hlBool Open(hlUInt uiMode) = 0;
virtual hlVoid Close() = 0;
virtual hlULongLong GetStreamSize() const = 0;
virtual hlULongLong GetStreamPointer() const = 0;
virtual hlULongLong Seek(hlLongLong iOffset, HLSeekMode eSeekMode) = 0;
virtual hlBool Read(hlChar &cChar) = 0;
virtual hlUInt Read(hlVoid *lpData, hlUInt uiBytes) = 0;
virtual hlBool Write(hlChar cChar) = 0;
virtual hlUInt Write(const hlVoid *lpData, hlUInt uiBytes) = 0;
};
}
}
#endif