2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "CDTable.h"
|
|
|
|
|
2023-03-04 07:16:37 +00:00
|
|
|
enum class eReplicaComponentType : uint32_t;
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2023-03-17 14:36:21 +00:00
|
|
|
class CDComponentsRegistryTable : public CDTable<CDComponentsRegistryTable> {
|
2021-12-05 17:54:36 +00:00
|
|
|
public:
|
2023-03-17 14:36:21 +00:00
|
|
|
CDComponentsRegistryTable();
|
2023-03-04 07:16:37 +00:00
|
|
|
int32_t GetByIDAndType(uint32_t id, eReplicaComponentType componentType, int32_t defaultValue = 0);
|
2023-03-20 13:10:52 +00:00
|
|
|
private:
|
|
|
|
void ReadRow(CppSQLite3Query& rowData);
|
|
|
|
private:
|
|
|
|
std::unordered_map<uint64_t, uint32_t> mappedEntries;
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|