Rubeus::UtilityComponents::RLoaderComponent class

A loader component. Useful for file I/O.

Base classes

class Rubeus::RMasterComponent
A master component. Serves as parent class for all components.

Public static functions

static auto loadImageFile(const char* path) -> GraphicComponents::Image
Loads image and returns it in the form of a Rubeus Image.
static void deleteImage()
Frees the loaded image data.

Constructors, destructors, conversion operators

RLoaderComponent()
Default constructor.
~RLoaderComponent()
Default destructor.

Public functions

auto loadTextFileStream(const char* filePath) -> std::string
Loads text file to a string using streams.
void load_image(var data)
Load an image and receive a reply with the image data in the form of a byte array.

Function documentation

static GraphicComponents::Image Rubeus::UtilityComponents::RLoaderComponent::loadImageFile(const char* path)

Loads image and returns it in the form of a Rubeus Image.

Parameters
path The image file path
Returns The image object.

std::string Rubeus::UtilityComponents::RLoaderComponent::loadTextFileStream(const char* filePath)

Loads text file to a string using streams.

Parameters
filePath Full pathname of the file.
Returns The text file in a string.

void Rubeus::UtilityComponents::RLoaderComponent::load_image(var data)

Load an image and receive a reply with the image data in the form of a byte array.

Parameters
data The image