Skylicht Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
Irrlicht
Include
IReadFile.h
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
*
createLimitReadFile
(
const
io::path
& fileName,
IReadFile
* alreadyOpenedFile,
long
pos,
long
areaSize);
49
50
}
// end namespace io
51
}
// end namespace irr
52
53
#endif
54
irr::IReferenceCounted::IReferenceCounted
IReferenceCounted()
Constructor.
Definition
IReferenceCounted.h:50
irr::io::IReadFile
Interface providing read acess to a file.
Definition
IReadFile.h:18
irr::io::IReadFile::getSize
virtual long getSize() const =0
Get size of file.
irr::io::IReadFile::getFileName
virtual const io::path & getFileName() const =0
Get name of file.
irr::io::IReadFile::read
virtual s32 read(void *buffer, u32 sizeToRead)=0
Reads an amount of bytes from the file.
irr::io::IReadFile::seek
virtual bool seek(long finalPos, bool relativeMovement=false)=0
Changes position in file.
irr::io::IReadFile::getPos
virtual long getPos() const =0
Get the current position in the file.
coreutil.h
File containing useful basic utility functions.
irr::io
This namespace provides interfaces for input/output: Reading and writing files, accessing zip archive...
Definition
EAttributes.h:11
irr::io::path
core::string< fschar_t > path
Type used for all file system related strings.
Definition
path.h:17
irr::io::createLimitReadFile
IReadFile * createLimitReadFile(const io::path &fileName, IReadFile *alreadyOpenedFile, long pos, long areaSize)
Internal function, please do not use.
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition
Skylicht.h:33
irr::u32
unsigned int u32
32 bit unsigned variable.
Definition
irrTypes.h:58
irr::s32
signed int s32
32 bit signed variable.
Definition
irrTypes.h:66
Generated by
1.17.0