YSE sound engine  1.0
cross platform sound engine
 All Classes Namespaces Functions Pages
io.hpp
1 /*
2  ==============================================================================
3 
4  io.h
5  Created: 23 Apr 2014 7:33:47pm
6  Author: yvan
7 
8  ==============================================================================
9 */
10 
11 #ifndef IO_H_INCLUDED
12 #define IO_H_INCLUDED
13 
14 #include "headers/types.hpp"
15 
16 namespace YSE {
17  /*
18  */
19  class API io {
20  public:
21  io(); // There is a global functor for this object. Don't create your own.
22 
23  io& open (Bool(*funcPtr)(const char * filename, I64 * filesize, void ** fileHandle));
24  io& close (void(*funcPtr)( void * fileHandle));
25  io& endOfFile (Bool(*funcPtr)( void * fileHandle));
26  io& read (Int (*funcPtr)(void * destBuffer, Int maxBytesToRead, void * fileHandle));
27  io& getPosition(I64 (*funcPtr)( void * fileHandle));
28  io& setPosition(Bool(*funcPtr)(I64 newPosition , void * fileHandle));
29  io& fileExists(Bool(*funcPtr)(const char * filename));
30 
31  io& setActive(Bool value);
32  Bool getActive( );
33 
34  private:
35  aBool active;
36  };
37 
38  API io & IO();
39 }
40 
41 
42 
43 #endif // IO_H_INCLUDED
Definition: io.hpp:19