diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-03-28 16:08:46 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-03-28 16:08:46 -0400 |
commit | 10a402f32a6d443e959b2caed187bccf161c1645 (patch) | |
tree | 54da9d9a47bddc39f1a51eab4a20d36f0e4433a2 /cadence.h | |
parent | 251248adfab36b061eb8fdd08aa54b318462da65 (diff) | |
download | cadence-10a402f32a6d443e959b2caed187bccf161c1645.tar.gz cadence-10a402f32a6d443e959b2caed187bccf161c1645.tar.bz2 cadence-10a402f32a6d443e959b2caed187bccf161c1645.zip |
Modernized bot
Diffstat (limited to 'cadence.h')
-rw-r--r-- | cadence.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cadence.h b/cadence.h new file mode 100644 index 0000000..408c258 --- /dev/null +++ b/cadence.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #ifndef CADENCE_H_D4AE737D | ||
2 | #define CADENCE_H_D4AE737D | ||
3 | |||
4 | #include <random> | ||
5 | #include <string> | ||
6 | #include <map> | ||
7 | #include <vector> | ||
8 | #include <hkutil/database.h> | ||
9 | #include <twitter.h> | ||
10 | |||
11 | class cadence { | ||
12 | public: | ||
13 | |||
14 | cadence( | ||
15 | std::string configFile, | ||
16 | std::mt19937& rng); | ||
17 | |||
18 | void run() const; | ||
19 | |||
20 | private: | ||
21 | |||
22 | std::mt19937& rng_; | ||
23 | std::map<std::string, std::vector<std::string>> groups_; | ||
24 | std::unique_ptr<hatkirby::database> database_; | ||
25 | std::unique_ptr<twitter::client> client_; | ||
26 | |||
27 | }; | ||
28 | |||
29 | |||
30 | #endif /* end of include guard: CADENCE_H_D4AE737D */ | ||