Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Cache/MemoryStringCache.h @ 5460:1474fd6ea6c6
CppCheck
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 11 Dec 2023 12:03:48 +0100 |
parents | 4be5f117aa0d |
children | d1992a9ec8c3 |
comparison
equal
deleted
inserted
replaced
5458:d7c9c85d78dc | 5460:1474fd6ea6c6 |
---|---|
57 bool shouldAdd_; // when this accessor is the one who should load and add the data | 57 bool shouldAdd_; // when this accessor is the one who should load and add the data |
58 std::string keyToAdd_; | 58 std::string keyToAdd_; |
59 | 59 |
60 | 60 |
61 public: | 61 public: |
62 Accessor(MemoryStringCache& cache); | 62 explicit Accessor(MemoryStringCache& cache); |
63 ~Accessor(); | 63 ~Accessor(); |
64 | 64 |
65 bool Fetch(std::string& value, const std::string& key); | 65 bool Fetch(std::string& value, const std::string& key); |
66 void Add(const std::string& key, const std::string& value); | 66 void Add(const std::string& key, const std::string& value); |
67 void Add(const std::string& key,const char* buffer, size_t size); | 67 void Add(const std::string& key,const char* buffer, size_t size); |