|
Porytiles
|
Abstract interface for querying layout metadata by name. More...
#include <layout_metadata_provider.hpp>
Public Member Functions | |
| virtual | ~LayoutMetadataProvider ()=default |
| virtual bool | exists (const std::string &layout_name_or_id) const =0 |
| Checks whether a layout exists in the backing store for the given layout name or ID. | |
| virtual ChainableResult< std::size_t > | width (const std::string &layout_name_or_id) const =0 |
| Determines the given layout's width in metatiles. | |
| virtual ChainableResult< std::size_t > | height (const std::string &layout_name_or_id) const =0 |
| Determines the given layout's height in metatiles. | |
| virtual ChainableResult< std::string > | primary_tileset (const std::string &layout_name_or_id) const =0 |
| Determines the given layout's primary tileset. | |
| virtual ChainableResult< std::string > | secondary_tileset (const std::string &layout_name_or_id) const =0 |
| Determines the given layout's secondary tileset. | |
| virtual ChainableResult< std::set< std::string > > | layout_names () const =0 |
| Returns all layout names known to this provider. | |
| virtual ChainableResult< std::set< std::string > > | layout_ids () const =0 |
| Returns all layout IDs known to this provider. | |
Abstract interface for querying layout metadata by name.
LayoutMetadataProvider defines a domain-layer abstraction for retrieving metadata about layouts. This allows the domain logic to query layout properties (such as height or width) without depending on any specific data source or I/O mechanism. Concrete implementations may source this metadata from project files, configuration, or other external systems.
Definition at line 22 of file layout_metadata_provider.hpp.
|
virtualdefault |
|
pure virtual |
Checks whether a layout exists in the backing store for the given layout name or ID.
| layout_name_or_id | The name or ID of the layout to check (e.g., "PetalburgCity_Layout" or "LAYOUT_PETALBURG_CITY") |
Implemented in porytiles::ProjectLayoutMetadataProvider.
|
pure virtual |
Determines the given layout's height in metatiles.
| layout_name_or_id | The name or ID of the layout to check (e.g., "PetalburgCity_Layout" or "LAYOUT_PETALBURG_CITY") |
Implemented in porytiles::ProjectLayoutMetadataProvider.
|
pure virtual |
Returns all layout IDs known to this provider.
Enumerates all layout IDs available in the backing store. This enables batch operations, validation, and listing without requiring callers to know layout IDs in advance.
Implemented in porytiles::ProjectLayoutMetadataProvider.
|
pure virtual |
Returns all layout names known to this provider.
Enumerates all layout names available in the backing store. This enables batch operations, validation, and listing without requiring callers to know layout names in advance.
Implemented in porytiles::ProjectLayoutMetadataProvider.
|
pure virtual |
Determines the given layout's primary tileset.
| layout_name_or_id | The name or ID of the layout to check (e.g., "PetalburgCity_Layout" or "LAYOUT_PETALBURG_CITY") |
Implemented in porytiles::ProjectLayoutMetadataProvider.
|
pure virtual |
Determines the given layout's secondary tileset.
| layout_name_or_id | The name or ID of the layout to check (e.g., "PetalburgCity_Layout" or "LAYOUT_PETALBURG_CITY") |
Implemented in porytiles::ProjectLayoutMetadataProvider.
|
pure virtual |
Determines the given layout's width in metatiles.
| layout_name_or_id | The name or ID of the layout to check (e.g., "PetalburgCity_Layout" or "LAYOUT_PETALBURG_CITY") |
Implemented in porytiles::ProjectLayoutMetadataProvider.