summary refs log tree commit diff stats
path: root/fefisms.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-11-08 15:11:12 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-11-08 15:11:12 -0500
commitbd806c551d3819eda88d046f067b5ecd6f53a464 (patch)
tree4f2d6fecec2cd148bca2475e7907a59fd115b6f3 /fefisms.h
parent7802b1e8cce56989c2588f2c852aab7a3620203a (diff)
downloadfefisms-bd806c551d3819eda88d046f067b5ecd6f53a464.tar.gz
fefisms-bd806c551d3819eda88d046f067b5ecd6f53a464.tar.bz2
fefisms-bd806c551d3819eda88d046f067b5ecd6f53a464.zip
Modernized bot structure
This improves readability, and also will display a nicer error message
for things such as the verbly datafile being invalid.
Diffstat (limited to 'fefisms.h')
-rw-r--r--fefisms.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/fefisms.h b/fefisms.h new file mode 100644 index 0000000..98ff8d0 --- /dev/null +++ b/fefisms.h
@@ -0,0 +1,28 @@
1#ifndef FEFISMS_H_09912EAE
2#define FEFISMS_H_09912EAE
3
4#include <random>
5#include <string>
6#include <verbly.h>
7#include <stdexcept>
8#include <memory>
9#include <twitter.h>
10
11class fefisms {
12public:
13
14 fefisms(
15 std::string configFile,
16 std::mt19937& rng);
17
18 void run() const;
19
20private:
21
22 std::mt19937& rng_;
23 std::unique_ptr<verbly::database> database_;
24 std::unique_ptr<twitter::client> client_;
25
26};
27
28#endif /* end of include guard: FEFISMS_H_09912EAE */