|
wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
|
The parsed, materialized form of one WDBS schema blob. More...
#include <wowlib/db/schema_catalog.hpp>
Public Member Functions | |
| SchemaCatalog (SchemaCatalog &&) noexcept=default | |
| SchemaCatalog & | operator= (SchemaCatalog &&) noexcept=default |
| SchemaCatalog (const SchemaCatalog &)=delete | |
| SchemaCatalog & | operator= (const SchemaCatalog &)=delete |
| Result< TableSchema > | lookup (std::string_view table, ClientVersion version) const |
| Resolve the schema of table for client version. | |
| std::size_t | tableCount () const |
| std::string_view | tableName (std::size_t i) const |
| The identifier name of table i (name-sorted order) — enumeration for tooling and the bindings' listing surface. | |
| std::span< const ClientVersion > | eras () const |
| The era table the blob was built against (index = mask bit). | |
The parsed, materialized form of one WDBS schema blob.
Move-only (the column names point into the owned bytes).
Definition at line 50 of file schema_catalog.hpp.
|
defaultnoexcept |
References SchemaCatalog().
Referenced by operator=(), operator=(), SchemaCatalog(), and SchemaCatalog().
|
delete |
References SchemaCatalog().
|
inline |
The era table the blob was built against (index = mask bit).
Definition at line 107 of file schema_catalog.hpp.
| Result< TableSchema > wowlib::db::SchemaCatalog::lookup | ( | std::string_view | table, |
| ClientVersion | version ) const |
Resolve the schema of table for client version.
| table | the table identifier (case-sensitive, e.g. "Map"). |
| version | the client to resolve for (snapped to its era by major). |
Definition at line 82 of file schema_catalog.cpp.
References wowlib::ClientVersion::build, wowlib::makeError(), wowlib::TableUnknown, and wowlib::UnsupportedClientVersion.
Referenced by operator=().
|
delete |
References lookup(), and SchemaCatalog().
|
defaultnoexcept |
References SchemaCatalog().
|
inline |
Definition at line 97 of file schema_catalog.hpp.
References tableCount().
Referenced by tableCount().
|
inline |
The identifier name of table i (name-sorted order) — enumeration for tooling and the bindings' listing surface.
| i | the table index (< tableCount()). |
Definition at line 103 of file schema_catalog.hpp.