diff options
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 |