|
Porytiles
|
TODO: fill in doxygen. More...
#include <project_artifact_checksum_provider.hpp>
Public Member Functions | |
| ProjectArtifactChecksumProvider (gsl::not_null< ProjectTilesetArtifactKeyProvider * > key_provider) | |
| std::unordered_map< ArtifactKey, std::string > | compute_tileset_artifact_checksums (const std::string &tileset_name) const override |
| Computes checksums for the artifacts that belong to the given Tileset. | |
| std::unordered_map< ArtifactKey, std::string > | load_cached_tileset_checksums (const std::string &tileset_name) const override |
| Loads the cached checksums for the given Tileset. | |
| Result< void > | cache_tileset_checksums (const std::string &tileset_name, const std::unordered_map< ArtifactKey, std::string > &checksums) const override |
| Caches checksums for the given Tileset to persistent storage. | |
Public Member Functions inherited from porytiles2::ArtifactChecksumProvider | |
| virtual | ~ArtifactChecksumProvider ()=default |
| virtual std::vector< ArtifactKey > | find_unsynced_tileset_artifacts (const std::string &tileset_name, const std::vector< ArtifactKey > &artifact_keys) const |
| Finds all artifacts for the given Tileset with unsynced changes compared to cached checksums. | |
| virtual bool | all_checksums_tileset_match (const std::string &tileset_name, const std::vector< ArtifactKey > &artifact_keys) const |
| Checks if all artifact checksums for the given Tileset match their cached values. | |
TODO: fill in doxygen.
TODO: fill in doxygen
Definition at line 16 of file project_artifact_checksum_provider.hpp.
|
inlineexplicit |
Definition at line 18 of file project_artifact_checksum_provider.hpp.
|
overridevirtual |
Caches checksums for the given Tileset to persistent storage.
| tileset_name | The name of the Tileset for which to cache checksums |
| checksums | A mapping of artifact keys to their checksums to be cached |
Implements porytiles2::ArtifactChecksumProvider.
Definition at line 61 of file project_artifact_checksum_provider.cpp.
|
overridevirtual |
Computes checksums for the artifacts that belong to the given Tileset.
| tileset_name | The name of the Tileset for which to compute checksums |
Implements porytiles2::ArtifactChecksumProvider.
Definition at line 17 of file project_artifact_checksum_provider.cpp.
|
overridevirtual |
Loads the cached checksums for the given Tileset.
| tileset_name | The name of the Tileset for which to load cached checksums |
Implements porytiles2::ArtifactChecksumProvider.
Definition at line 35 of file project_artifact_checksum_provider.cpp.