JustAnotherDnDGame 0.1.0
Jeu de rôle tactique au d20, vue de dessus, en C++/Qt
Loading...
Searching...
No Matches
hmi::SoundCatalogResult Struct Reference

Résultat d'une lecture de catalogue : soit un SoundCatalog, soit une erreur décrite. More...

#include <SoundCatalog.h>

Public Member Functions

bool ok () const noexcept

Public Attributes

std::optional< SoundCatalogcatalog
std::string error
SoundCatalogError errorCode = SoundCatalogError::None

Detailed Description

Résultat d'une lecture de catalogue : soit un SoundCatalog, soit une erreur décrite.

Même patron que hmi::SkinCatalogResult : aucune exception ne franchit la frontière de lecture (EX-NFR-040).

Member Function Documentation

◆ ok()

bool hmi::SoundCatalogResult::ok ( ) const
inlinenodiscardnoexcept
Returns
true si la lecture a réussi.

Member Data Documentation

◆ catalog

std::optional<SoundCatalog> hmi::SoundCatalogResult::catalog

◆ error

std::string hmi::SoundCatalogResult::error

◆ errorCode

SoundCatalogError hmi::SoundCatalogResult::errorCode = SoundCatalogError::None

The documentation for this struct was generated from the following file:
  • /home/runner/work/JustAnotherDnDGame/JustAnotherDnDGame/Source/HMI/Audio/SoundCatalog.h