Porytiles
Loading...
Searching...
No Matches
noop_artifact_checksum_provider.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5
9
10namespace porytiles {
11
20 public:
22
23 [[nodiscard]] std::unordered_map<ArtifactKey, std::string>
24 compute_tileset_artifact_checksums(const std::vector<ArtifactKey> &keys) const override;
25
26 [[nodiscard]] std::unordered_map<ArtifactKey, std::string>
27 load_cached_tileset_checksums(const std::string &name) const override;
28
30 const std::string &name, const std::unordered_map<ArtifactKey, std::string> &checksums) const override;
31};
32
33} // namespace porytiles
Abstract service for managing artifact checksums.
A result type that maintains a chainable sequence of errors for debugging and error reporting.
An implementation of ArtifactChecksumProvider that just does nothing.
std::unordered_map< ArtifactKey, std::string > load_cached_tileset_checksums(const std::string &name) const override
Loads the cached checksums for the given Tileset.
ChainableResult< void > cache_tileset_checksums(const std::string &name, const std::unordered_map< ArtifactKey, std::string > &checksums) const override
Caches checksums for the given Tileset to persistent storage.
std::unordered_map< ArtifactKey, std::string > compute_tileset_artifact_checksums(const std::vector< ArtifactKey > &keys) const override
Computes checksums for the given Tileset artifacts.