RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
ik_IFileReader.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2014 Nikolaus Gebhardt
2 // This file is part of the "irrKlang" library.
3 // For conditions of distribution and use, see copyright notice in irrKlang.h
4 
5 #ifndef __I_IRRKLANG_READ_FILE_H_INCLUDED__
6 #define __I_IRRKLANG_READ_FILE_H_INCLUDED__
7 
8 #include "ik_IRefCounted.h"
9 
10 namespace irrklang
11 {
12 
14  class IFileReader : public virtual IRefCounted
15  {
16  public:
17 
18  virtual ~IFileReader() {};
19 
24  virtual ik_s32 read(void* buffer, ik_u32 sizeToRead) = 0;
25 
32  virtual bool seek(ik_s32 finalPos, bool relativeMovement = false) = 0;
33 
36  virtual ik_s32 getSize() = 0;
37 
40  virtual ik_s32 getPos() = 0;
41 
44  virtual const ik_c8* getFileName() = 0;
45  };
46 
47 } // end namespace irrklang
48 
49 #endif
50 
Base class of most objects of the irrKlang.
Interface providing read acess to a file.
unsigned int ik_u32
32 bit unsigned variable.
signed int ik_s32
32 bit signed variable.
char ik_c8
8 bit character variable.
Everything in the irrKlang Sound Engine can be found in this namespace.
virtual ik_s32 read(void *buffer, ik_u32 sizeToRead)=0
virtual ik_s32 getSize()=0
virtual bool seek(ik_s32 finalPos, bool relativeMovement=false)=0
virtual ik_s32 getPos()=0
virtual const ik_c8 * getFileName()=0