8 #ifndef QRESOURCESTREAM_H 9 #define QRESOURCESTREAM_H 11 #include <SFML/System/InputStream.hpp> 22 :
public sf::InputStream {
41 bool open(
const char* path);
49 virtual sf::Int64
read(
void* data, sf::Int64 size);
56 virtual sf::Int64
seek(sf::Int64 position);
61 virtual sf::Int64
tell();
121 #endif // QRESOURCESTREAM_H virtual sf::Int64 tell()
Returns cursor's position.
Definition: qresourcestream.cpp:56
virtual sf::Int64 seek(sf::Int64 position)
Sets new cursor's position.
Definition: qresourcestream.cpp:52
bool open(const char *path)
Opens file.
Definition: qresourcestream.cpp:19
Namespace containing all qsf classes and methods.
Definition: Image.cpp:3
QResourceStream & operator()(const char *path)
Open a file using operator()
Definition: qresourcestream.cpp:63
virtual sf::Int64 read(void *data, sf::Int64 size)
Reads parts of resource.
Definition: qresourcestream.cpp:44
sf::InputStream reading QResource files
Definition: qresourcestream.hpp:21
~QResourceStream()
Destructor.
Definition: qresourcestream.cpp:14
virtual sf::Int64 getSize()
Returns file size.
Definition: qresourcestream.cpp:59
QResourceStream()
Default constructor.
Definition: qresourcestream.cpp:10
friend std::ostream & operator<<(std::ostream &out, QResourceStream &resource)
Prints whole file (std::ostream)
Definition: qresourcestream.cpp:68