-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFileStream.h
51 lines (36 loc) · 905 Bytes
/
FileStream.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef FILESTREAM_H
#define FILESTREAM_H
#include <SFML/System.hpp>
#include <string>
#include <cstdio>
//#include <physfs.h>
/*class FileStream : public sf::InputStream
{
public :
FileStream(std::string archive);
~FileStream();
bool open(std::string filename);
virtual sf::Int64 read(void* data, sf::Int64 size);
virtual sf::Int64 seek(sf::Int64 position);
virtual sf::Int64 tell();
virtual sf::Int64 getSize();
private :
std::FILE* m_file;
}; */
/*class FileStream : public sf::InputStream
{
public:
FileStream(const char* filename);
virtual ~FileStream();
bool isOpen() const;
bool open(const char* filename);
void close();
virtual sf::Int64 read(void* data, sf::Int64 size);
virtual sf::Int64 seek(sf::Int64 position);
virtual sf::Int64 tell();
virtual sf::Int64 getSize();
private:
PHYSFS_File* m_File;
};
*/
#endif