Irrlicht 3D Engine
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
IReadFile.h
Go to the documentation of this file.
1
// Copyright (C) 2002-2012 Nikolaus Gebhardt
2
// This file is part of the "Irrlicht Engine".
3
// For conditions of distribution and use, see copyright notice in irrlicht.h
4
5
#ifndef __I_READ_FILE_H_INCLUDED__
6
#define __I_READ_FILE_H_INCLUDED__
7
8
#include "
IReferenceCounted.h
"
9
#include "
coreutil.h
"
10
11
namespace
irr
12
{
13
namespace
io
14
{
15
17
class
IReadFile
:
public
virtual
IReferenceCounted
18
{
19
public
:
21
24
virtual
s32
read
(
void
* buffer,
u32
sizeToRead) = 0;
25
27
32
virtual
bool
seek
(
long
finalPos,
bool
relativeMovement =
false
) = 0;
33
35
36
virtual
long
getSize
()
const
= 0;
37
39
40
virtual
long
getPos
()
const
= 0;
41
43
44
virtual
const
io::path
&
getFileName
()
const
= 0;
45
};
46
48
IReadFile
*
createReadFile
(
const
io::path
& fileName);
50
IReadFile
*
createLimitReadFile
(
const
io::path
& fileName,
IReadFile
* alreadyOpenedFile,
long
pos,
long
areaSize);
52
IReadFile
*
createMemoryReadFile
(
void
* memory,
long
size,
const
io::path
& fileName,
bool
deleteMemoryWhenDropped);
53
54
}
// end namespace io
55
}
// end namespace irr
56
57
#endif
58
Irrlicht Engine
Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on Mon Jun 6 2022 20:53:05 for Irrlicht 3D Engine by
Doxygen
1.8.1.2