diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-11-08 15:42:37 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-11-08 15:42:37 -0500 |
commit | 42741a3659281ffbef259eafeeb127b3286506cf (patch) | |
tree | 91cf237eb5d7c0abe5e2631bdc976f9cc88bd3be /grunge.cpp | |
parent | 9fb32eb6185e0bbf358d279a267d187c266b6656 (diff) | |
download | grunge-42741a3659281ffbef259eafeeb127b3286506cf.tar.gz grunge-42741a3659281ffbef259eafeeb127b3286506cf.tar.bz2 grunge-42741a3659281ffbef259eafeeb127b3286506cf.zip |
Updated verbly (datafile versioning)
Diffstat (limited to 'grunge.cpp')
-rw-r--r-- | grunge.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/grunge.cpp b/grunge.cpp index de9061e..2f6783c 100644 --- a/grunge.cpp +++ b/grunge.cpp | |||
@@ -16,6 +16,10 @@ grunge::grunge( | |||
16 | // Load the config file. | 16 | // Load the config file. |
17 | YAML::Node config = YAML::LoadFile(configFile); | 17 | YAML::Node config = YAML::LoadFile(configFile); |
18 | 18 | ||
19 | // Set up the verbly database. | ||
20 | database_ = std::unique_ptr<verbly::database>( | ||
21 | new verbly::database(config["verbly_datafile"].as<std::string>())); | ||
22 | |||
19 | // Set up the Twitter client. | 23 | // Set up the Twitter client. |
20 | twitter::auth auth; | 24 | twitter::auth auth; |
21 | auth.setConsumerKey(config["consumer_key"].as<std::string>()); | 25 | auth.setConsumerKey(config["consumer_key"].as<std::string>()); |
@@ -24,10 +28,6 @@ grunge::grunge( | |||
24 | auth.setAccessSecret(config["access_secret"].as<std::string>()); | 28 | auth.setAccessSecret(config["access_secret"].as<std::string>()); |
25 | 29 | ||
26 | client_ = std::unique_ptr<twitter::client>(new twitter::client(auth)); | 30 | client_ = std::unique_ptr<twitter::client>(new twitter::client(auth)); |
27 | |||
28 | // Set up the verbly database. | ||
29 | database_ = std::unique_ptr<verbly::database>( | ||
30 | new verbly::database(config["verbly_datafile"].as<std::string>())); | ||
31 | } | 31 | } |
32 | 32 | ||
33 | void grunge::run() const | 33 | void grunge::run() const |