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 onMessage(Message* msg) override virtual
Handles the message received.

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::onMessage(Message* msg) override virtual

Handles the message received.

Parameters
msg Pointer to the message sent.