summary refs log tree commit diff stats
path: root/imagestore.h
blob: 2c3495db7a6bc667e2f5ae198ebebcaeb82005e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef IMAGESTORE_H_80B1E49F
#define IMAGESTORE_H_80B1E49F

#include <Magick++.h>

#include <mutex>
#include <string>

class imagestore {
 public:
  explicit imagestore(std::string path) : path_(std::move(path)) {}

  Magick::Image get(std::string key, std::string url) const;

  void cleanup() const;

 private:
  std::string path_;

  mutable std::mutex mutex_;
};

#endif /* end of include guard: IMAGESTORE_H_80B1E49F */