Lodestone.Core
Loading...
Searching...
No Matches
VersionRegistry.h
Go to the documentation of this file.
1//
2// Created by zero on 11/19/26.
3//
4
5#ifndef LODESTONE_CORE_VERSION_REGISTRY_H
6#define LODESTONE_CORE_VERSION_REGISTRY_H
7
8#include <string>
9#include <unordered_set>
10#include <Lodestone.Common/registry/Identifier.h>
11
14 public:
15 void registerEdition(std::string edition, std::vector<std::string> versions);
16 void registerVersion(const std::string& edition, std::string version);
17 bool isValid(const common::registry::Identifier &identifier) const;
18
19 std::unordered_map<std::string, std::unordered_set<std::string>> getEditions();
20 private:
21 std::unordered_map<std::string, std::unordered_set<std::string>> m_editions;
22 };
23}
24
25#endif //LODESTONE_CORE_VERSION_REGISTRY_H
Definition VersionRegistry.h:13
void registerVersion(const std::string &edition, std::string version)
Definition VersionRegistry.cpp:18
bool isValid(const common::registry::Identifier &identifier) const
Definition VersionRegistry.cpp:33
std::unordered_map< std::string, std::unordered_set< std::string > > getEditions()
Definition VersionRegistry.cpp:41
std::unordered_map< std::string, std::unordered_set< std::string > > m_editions
Definition VersionRegistry.h:21
void registerEdition(std::string edition, std::vector< std::string > versions)
Definition VersionRegistry.cpp:8
Definition VersionRegistry.h:12