summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Zaitsev <zamazan4ik@tut.by>2020-03-17 05:21:09 +0300
committerAlexander Zaitsev <zamazan4ik@tut.by>2020-03-17 05:21:09 +0300
commita2ea1d3c9df1718cafaf0e51d19c73e0ced903e5 (patch)
treefb53961975917598e28c461de2c7463537d5767d /src
parent70ffa285512d2fa829b6c73aa24d6f4b3e314edd (diff)
format: add missing headers
- add missing include headers in different part of tgbot-cpp library, remove unused includes Tested: - Local build
Diffstat (limited to 'src')
-rw-r--r--src/Api.cpp5
-rw-r--r--src/Bot.cpp3
-rw-r--r--src/EventHandler.cpp1
-rw-r--r--src/TgException.cpp2
-rw-r--r--src/TgTypeParser.cpp3
-rw-r--r--src/net/BoostHttpOnlySslClient.cpp1
-rw-r--r--src/net/CurlHttpClient.cpp3
-rw-r--r--src/net/HttpParser.cpp4
-rw-r--r--src/net/TgLongPoll.cpp2
-rw-r--r--src/net/Url.cpp1
-rw-r--r--src/tools/FileTools.cpp1
-rw-r--r--src/tools/StringTools.cpp2
-rw-r--r--src/types/InlineQueryResult.cpp2
-rw-r--r--src/types/InputFile.cpp3
14 files changed, 28 insertions, 5 deletions
diff --git a/src/Api.cpp b/src/Api.cpp
index c1b112c..4700281 100644
--- a/src/Api.cpp
+++ b/src/Api.cpp
@@ -1,9 +1,12 @@
#include "tgbot/Api.h"
#include <cstdint>
-#include <tgbot/tools/StringTools.h>
+#include <string>
+#include <vector>
#include <utility>
+#include "tgbot/tools/StringTools.h"
+
#include "tgbot/TgException.h"
#include "tgbot/TgTypeParser.h"
diff --git a/src/Bot.cpp b/src/Bot.cpp
index b1e1ea5..e0acbdb 100644
--- a/src/Bot.cpp
+++ b/src/Bot.cpp
@@ -2,6 +2,9 @@
#include "tgbot/EventBroadcaster.h"
+#include <memory>
+#include <string>
+
namespace TgBot {
Bot::Bot(std::string token, const HttpClient& httpClient)
diff --git a/src/EventHandler.cpp b/src/EventHandler.cpp
index 43f2eb1..cad3e4f 100644
--- a/src/EventHandler.cpp
+++ b/src/EventHandler.cpp
@@ -2,6 +2,7 @@
#include <algorithm>
#include <cstddef>
+#include <string>
using namespace std;
diff --git a/src/TgException.cpp b/src/TgException.cpp
index 03a942c..e61e09c 100644
--- a/src/TgException.cpp
+++ b/src/TgException.cpp
@@ -1,5 +1,7 @@
#include "tgbot/TgException.h"
+#include <string>
+
namespace TgBot {
TgBot::TgException::TgException(const std::string& description) : runtime_error(description) {
diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp
index 4d91d28..06a2b2a 100644
--- a/src/TgTypeParser.cpp
+++ b/src/TgTypeParser.cpp
@@ -1,5 +1,8 @@
#include "tgbot/TgTypeParser.h"
+#include <memory>
+#include <string>
+
using namespace std;
using namespace boost::property_tree;
diff --git a/src/net/BoostHttpOnlySslClient.cpp b/src/net/BoostHttpOnlySslClient.cpp
index 836b06a..6cf906f 100644
--- a/src/net/BoostHttpOnlySslClient.cpp
+++ b/src/net/BoostHttpOnlySslClient.cpp
@@ -1,6 +1,7 @@
#include "tgbot/net/BoostHttpOnlySslClient.h"
#include <cstddef>
+#include <vector>
#include <boost/asio/ssl.hpp>
diff --git a/src/net/CurlHttpClient.cpp b/src/net/CurlHttpClient.cpp
index 6255974..5fde377 100644
--- a/src/net/CurlHttpClient.cpp
+++ b/src/net/CurlHttpClient.cpp
@@ -3,8 +3,7 @@
#include "tgbot/net/CurlHttpClient.h"
#include <cstddef>
-
-#include <boost/asio/ssl.hpp>
+#include <string>
namespace TgBot {
diff --git a/src/net/HttpParser.cpp b/src/net/HttpParser.cpp
index 2d3085f..2f72609 100644
--- a/src/net/HttpParser.cpp
+++ b/src/net/HttpParser.cpp
@@ -1,7 +1,9 @@
#include "tgbot/net/HttpParser.h"
#include <cstddef>
-#include <cstdint>
+#include <string>
+#include <vector>
+#include <unordered_map>
#include <boost/algorithm/string.hpp>
diff --git a/src/net/TgLongPoll.cpp b/src/net/TgLongPoll.cpp
index 98575de..a7b4fcb 100644
--- a/src/net/TgLongPoll.cpp
+++ b/src/net/TgLongPoll.cpp
@@ -5,6 +5,8 @@
#include "tgbot/EventHandler.h"
#include <cstdint>
+#include <memory>
+#include <vector>
#include <utility>
namespace TgBot {
diff --git a/src/net/Url.cpp b/src/net/Url.cpp
index 95e31c7..4b46f41 100644
--- a/src/net/Url.cpp
+++ b/src/net/Url.cpp
@@ -1,6 +1,7 @@
#include "tgbot/net/Url.h"
#include <cstddef>
+#include <string>
using namespace std;
diff --git a/src/tools/FileTools.cpp b/src/tools/FileTools.cpp
index d2c303c..bb5b7b5 100644
--- a/src/tools/FileTools.cpp
+++ b/src/tools/FileTools.cpp
@@ -2,6 +2,7 @@
#include <fstream>
#include <sstream>
+#include <string>
using namespace std;
diff --git a/src/tools/StringTools.cpp b/src/tools/StringTools.cpp
index f49a78e..8b8f4da 100644
--- a/src/tools/StringTools.cpp
+++ b/src/tools/StringTools.cpp
@@ -1,9 +1,9 @@
#include "tgbot/tools/StringTools.h"
-#include <cstdlib>
#include <iomanip>
#include <cstdio>
#include <random>
+#include <string>
using namespace std;
diff --git a/src/types/InlineQueryResult.cpp b/src/types/InlineQueryResult.cpp
index 3d4ea6e..0993ec2 100644
--- a/src/types/InlineQueryResult.cpp
+++ b/src/types/InlineQueryResult.cpp
@@ -19,6 +19,8 @@
#include "tgbot/types/InlineQueryResultPhoto.h"
#include "tgbot/types/InlineQueryResultVideo.h"
+#include <string>
+
using namespace TgBot;
const std::string InlineQueryResultCachedAudio::TYPE = "audio";
diff --git a/src/types/InputFile.cpp b/src/types/InputFile.cpp
index 0ca1991..c74c73e 100644
--- a/src/types/InputFile.cpp
+++ b/src/types/InputFile.cpp
@@ -2,6 +2,9 @@
#include "tgbot/tools/StringTools.h"
#include "tgbot/tools/FileTools.h"
+#include <memory>
+#include <string>
+
using namespace std;
namespace TgBot {