add GetLabel to ResourceLabelManager
This commit is contained in:
@@ -154,6 +154,11 @@ void ResourceLabelManager::SelectableLabelWithNameEdit(
|
||||
}
|
||||
}
|
||||
|
||||
std::string ResourceLabelManager::GetLabel(const std::string& type,
|
||||
const std::string& key) {
|
||||
return labels_[type][key];
|
||||
}
|
||||
|
||||
std::string ResourceLabelManager::CreateOrGetLabel(
|
||||
const std::string& type, const std::string& key,
|
||||
const std::string& defaultValue) {
|
||||
|
||||
@@ -38,6 +38,7 @@ struct ResourceLabelManager {
|
||||
void SelectableLabelWithNameEdit(bool selected, const std::string& type,
|
||||
const std::string& key,
|
||||
const std::string& defaultValue);
|
||||
std::string GetLabel(const std::string& type, const std::string& key);
|
||||
std::string CreateOrGetLabel(const std::string& type, const std::string& key,
|
||||
const std::string& defaultValue);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user