summary refs log tree commit diff stats
path: root/sap.h
blob: 44ece235fec80330a6d1db912d76786e6e70a2ff (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
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef SAP_H_11D8D668
#define SAP_H_11D8D668

#include <random>
#include <string>
#include <memory>
#include <Magick++.h>
#include <mastodonpp.hpp>
#include <rawr.h>
#include "designer.h"
#include "director.h"

class sap {
public:

  sap(
    std::string configFile,
    std::mt19937& rng);

  void run() const;

private:

  void sendTweet(Magick::Image image, const std::string& text) const;

  std::mt19937& rng_;
  std::unique_ptr<mastodonpp::Instance> instance_;
  std::unique_ptr<mastodonpp::Connection> connection_;
  rawr kgramstats_;
  std::unique_ptr<designer> layout_;
  std::unique_ptr<director> director_;
  std::string tempfile_;

};

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