Loading...
Searching...
No Matches
IReadFile.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_READ_FILE_H_INCLUDED__
#define __I_READ_FILE_H_INCLUDED__
#include "IReferenceCounted.h"
#include "coreutil.h"
namespace irr
{
namespace io
{
class IReadFile : public virtual IReferenceCounted
{
public:
virtual s32 read(void* buffer, u32 sizeToRead) = 0;
virtual bool seek(long finalPos, bool relativeMovement = false) = 0;
virtual long getSize() const = 0;
virtual long getPos() const = 0;
virtual const io::path& getFileName() const = 0;
};
IReadFile* createReadFile(const io::path& fileName);
IReadFile* createLimitReadFile(const io::path& fileName, IReadFile* alreadyOpenedFile, long pos, long areaSize);
IReadFile* createMemoryReadFile(void* memory, long size, const io::path& fileName, bool deleteMemoryWhenDropped);
} // end namespace io
} // end namespace irr
#endif
IReferenceCounted.h
irr::IReferenceCounted::IReferenceCounted
IReferenceCounted()
Constructor.
Definition IReferenceCounted.h:46
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::createMemoryReadFile
IReadFile * createMemoryReadFile(void *memory, long size, const io::path &fileName, bool deleteMemoryWhenDropped)
Internal function, please do not use.
irr::io::createReadFile
IReadFile * createReadFile(const io::path &fileName)
Internal function, please do not use.
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 aabbox3d.h:13
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
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0