Skip to content

TutorialLoader ​

#include "Tutorial/TutorialLoader.h"

Public Functions ​

Name
std::stringgetDirectory(const std::filesystem::path & path)
std::shared_ptr< GUIImage >loadImage(const std::string & path)<br>simple wrapper that tries to load an image
std::shared_ptr< Tutorial >loadTutorial(std::shared_ptr< TutorialHeader > header)
std::shared_ptr< TutorialHeader >loadTutorialHeader(std::string & path)

Public Functions Documentation ​

function getDirectory ​

cpp
static std::string getDirectory(
    const std::filesystem::path & path
)

function loadImage ​

cpp
static std::shared_ptr< GUIImage > loadImage(
    const std::string & path
)

simple wrapper that tries to load an image

Parameters:

  • path whole path to the image

Return: ptr to image if successful, nullptr otherwise

function loadTutorial ​

cpp
static std::shared_ptr< Tutorial > loadTutorial(
    std::shared_ptr< TutorialHeader > header
)

function loadTutorialHeader ​

cpp
static std::shared_ptr< TutorialHeader > loadTutorialHeader(
    std::string & path
)

Updated on 2026-09-11 at 21:24:24 +0000