20#ifndef ORES_QT_HOST_DISPLAY_NAME_CACHE_HPP
21#define ORES_QT_HOST_DISPLAY_NAME_CACHE_HPP
27#include "ores.compute.api/domain/host.hpp"
61 void populate_from(
const std::vector<compute::domain::host>& hosts);
69 QHash<QString, QString> cache_;
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:29
Shared cache mapping host UUID strings to whimsical display names.
Definition HostDisplayNameCache.hpp:41
QString display_name_for(const QString &uuid) const
Returns the display name for the given UUID string.
Definition HostDisplayNameCache.cpp:29
void populate_from(const std::vector< compute::domain::host > &hosts)
Populates (or updates) the cache from a list of hosts.
Definition HostDisplayNameCache.cpp:37
void clear()
Removes all entries from the cache.
Definition HostDisplayNameCache.cpp:48