Vital
Loading...
Searching...
No Matches
PresetInfoCache Class Reference

A cache for preset metadata such as author and style for faster repeated lookups. More...

#include <preset_browser.h>

Public Member Functions

std::string getAuthor (const File &preset)
 Retrieves the author of a given preset, caching the result.
 
std::string getStyle (const File &preset)
 Retrieves the style of a given preset, caching the result.
 

Detailed Description

A cache for preset metadata such as author and style for faster repeated lookups.

This class caches the author and style of presets to avoid multiple file reads.

Member Function Documentation

◆ getAuthor()

std::string PresetInfoCache::getAuthor ( const File & preset)
inline

Retrieves the author of a given preset, caching the result.

Parameters
presetThe preset file.
Returns
The author name as a std::string.

◆ getStyle()

std::string PresetInfoCache::getStyle ( const File & preset)
inline

Retrieves the style of a given preset, caching the result.

Parameters
presetThe preset file.
Returns
The style (in lowercase) as a std::string.

The documentation for this class was generated from the following file: