1
// Copyright (C) 2002-2011 Nikolaus Gebhardt
2
// This file is part of the "Irrlicht Engine".
3
// For conditions of distribution and use, see copyright notice in irrlicht.h
5
#ifndef __C_READ_FILE_H_INCLUDED__
6
#define __C_READ_FILE_H_INCLUDED__
10
#include "irrString.h"
19
Class for reading a real file from disk.
21
class CReadFile : public IReadFile
25
CReadFile(const io::path& fileName);
29
//! returns how much was read
30
virtual s32 read(void* buffer, u32 sizeToRead);
32
//! changes position in file, returns true if successful
33
virtual bool seek(long finalPos, bool relativeMovement = false);
35
//! returns size of file
36
virtual long getSize() const;
38
//! returns if file is open
39
virtual bool isOpen() const
44
//! returns where in the file we are.
45
virtual long getPos() const;
47
//! returns name of file
48
virtual const io::path& getFileName() const;
61
} // end namespace irr