TutorialLoader
#include "Tutorial/TutorialLoader.h"
Public Functions
Name | |
---|---|
std::string | getDirectory(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
)
static std::string getDirectory(
const std::filesystem::path & path
)
function loadImage
cpp
static std::shared_ptr< GUIImage > loadImage(
const std::string & path
)
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
)
static std::shared_ptr< Tutorial > loadTutorial(
std::shared_ptr< TutorialHeader > header
)
function loadTutorialHeader
cpp
static std::shared_ptr< TutorialHeader > loadTutorialHeader(
std::string & path
)
static std::shared_ptr< TutorialHeader > loadTutorialHeader(
std::string & path
)
Updated on 2025-01-07 at 13:40:43 +0000