12#ifndef MINESERVER_FILE_H
13#define MINESERVER_FILE_H
25 std::vector<char> data;
43 File(std::string path);
66 const std::string &
getPath()
const;
89 unsigned int width, height;
90 std::string base64String;
File Loader Wrapper.
Definition file.h:23
bool load()
Loads the data of the file into ram.
Definition file.cpp:31
int getSize() const
Get the size of the file stored.
Definition file.cpp:56
const std::string & getPath() const
Get the Path object.
Definition file.cpp:46
~File()
Destroy the File object.
Definition file.cpp:27
File()
Constructs a new File object.
Definition file.cpp:18
const char * getPointer() const
Get the pointer to the data.
Definition file.cpp:51
Wrapper around File for PNG files.
Definition file.h:87
unsigned int getHeight() const
Get the Height of the file.
Definition file.cpp:103
PNGFile()
Construct a new PNGFile object.
Definition file.cpp:61
unsigned int getWidth() const
Get the Width of the file.
Definition file.cpp:98
const std::string & getBase64String() const
Get the Base64 representation of the file.
Definition file.cpp:108
~PNGFile()
Destroy the PNGFile object.