| 171 | } |
| 172 | |
| 173 | std::vector<std::string> DataStorageService::GetAllLabels() const |
| 174 | { |
| 175 | std::lock_guard<std::mutex> lock(m_Mutex); |
| 176 | |
| 177 | std::vector<std::string> result; |
| 178 | result.reserve(m_Storages.size() + 1); |
| 179 | result.push_back(m_DefaultStorage.GetLabel()); |
| 180 | |
| 181 | for (const auto& info : m_Storages) |
| 182 | { |
| 183 | result.push_back(info.GetLabel()); |
| 184 | } |
| 185 | |
| 186 | return result; |
| 187 | } |
| 188 | |
| 189 | std::vector<DataStorageReference> DataStorageService::GetAllDataStorages() const |
| 190 | { |