A cache for preset metadata such as author and style for faster repeated lookups.
More...
#include <preset_browser.h>
|
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.
|
|
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.
◆ getAuthor()
std::string PresetInfoCache::getAuthor |
( |
const File & | preset | ) |
|
|
inline |
Retrieves the author of a given preset, caching the result.
- Parameters
-
- 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
-
- Returns
- The style (in lowercase) as a std::string.
The documentation for this class was generated from the following file:
- /Users/davidvogel/repos/VitalHelp/src/interface/editor_sections/preset_browser.h