#include <resource.hpp>
The Resource class is used to manage (binary) resources.
cypress::Resource::Resource |
( |
const std::vector< uint8_t > & |
data | ) |
|
|
inline |
Creates a resource containing the given data.
cypress::Resource::Resource |
( |
const std::string & |
data | ) |
|
|
inline |
Creates a resource containing the given data.
cypress::Resource::~Resource |
( |
| ) |
|
Destroys the resource and deletes any temporary file created to access
const std::vector<uint8_t>& cypress::Resource::data |
( |
| ) |
const |
|
inline |
Returns a reference at the vector containing the data.
const std::string& cypress::Resource::open |
( |
| ) |
const |
Returns the name of a file which will contain the data stored in the resource.
const std::string cypress::Resource::open_local |
( |
std::string |
filename | ) |
const |
Returns the name of a file in the current directory which will contain the data stored in the resource. Deletion of the file is not covered!
The documentation for this class was generated from the following file: