From da3bc860f66d34f233028e819beee32dd1c43dd8 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 18 Jan 2018 16:49:54 -0500 Subject: Modernized project This rewrite brings the codebase of this project more in line with the format of the other bots, including things like C++ randomization, better abstraction, use of exceptions, etc. Notably, any FFMPEG objects that get allocated are wrapped in simple objects so that they get properly destroyed if an exception is thrown. Some more error detection and cleanliness stuff can probably be done but my wrists really hurt. Also updated librawr, and thus also removed the yaml-cpp submodule. --- sap.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 sap.h (limited to 'sap.h') diff --git a/sap.h b/sap.h new file mode 100644 index 0000000..5288e57 --- /dev/null +++ b/sap.h @@ -0,0 +1,34 @@ +#ifndef SAP_H_11D8D668 +#define SAP_H_11D8D668 + +#include +#include +#include +#include +#include +#include +#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::mt19937& rng_; + std::unique_ptr client_; + rawr kgramstats_; + std::unique_ptr layout_; + std::unique_ptr director_; + +}; + +#endif /* end of include guard: SAP_H_11D8D668 */ -- cgit 1.4.1