MT Showcase SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
CodiceCache.hpp
1 #pragma once
2 
3 #include "Export.hpp"
4 #include "CodiceService.hpp"
5 
6 namespace Showcase
7 {
8 
13  class SHOWCASE_API CodiceServiceCache
14  {
15  public:
17  CodiceServiceCache() = default;
21  CodiceServiceCache & operator=(CodiceServiceCache && o);
23 
29  const CodiceServiceAPI::MarkerProperties& markerProperties(uint64_t code) const;
30 
34  bool isCached(uint64_t markerCode) const;
35 
39  void cache(uint64_t markerCode, CodiceServiceAPI::MarkerProperties props);
42  void invalidateCache(uint64_t markerCode);
43 
44  private:
45  std::map<uint64_t, CodiceServiceAPI::MarkerProperties> m_markerPropertiesCache;
46  };
47 
48 }