diff options
author | Alexander Zaitsev <zamazan4ik@tut.by> | 2020-03-17 05:21:09 +0300 |
---|---|---|
committer | Alexander Zaitsev <zamazan4ik@tut.by> | 2020-03-17 05:21:09 +0300 |
commit | a2ea1d3c9df1718cafaf0e51d19c73e0ced903e5 (patch) | |
tree | fb53961975917598e28c461de2c7463537d5767d /include | |
parent | 70ffa285512d2fa829b6c73aa24d6f4b3e314edd (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 'include')
-rw-r--r-- | include/tgbot/Api.h | 1 | ||||
-rw-r--r-- | include/tgbot/EventBroadcaster.h | 1 | ||||
-rw-r--r-- | include/tgbot/TgTypeParser.h | 4 | ||||
-rw-r--r-- | include/tgbot/net/BoostHttpOnlySslClient.h | 1 | ||||
-rw-r--r-- | include/tgbot/net/CurlHttpClient.h | 1 | ||||
-rw-r--r-- | include/tgbot/net/HttpClient.h | 1 | ||||
-rw-r--r-- | include/tgbot/net/HttpReqArg.h | 1 | ||||
-rw-r--r-- | include/tgbot/net/HttpServer.h | 4 | ||||
-rw-r--r-- | include/tgbot/net/TgWebhookLocalServer.h | 2 | ||||
-rw-r--r-- | include/tgbot/net/TgWebhookServer.h | 2 | ||||
-rw-r--r-- | include/tgbot/net/TgWebhookTcpServer.h | 2 |
11 files changed, 19 insertions, 1 deletions
diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index ac37231..50e10ed 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -2,6 +2,7 @@ #define TGBOT_CPP_API_H #include <cstdint> +#include <memory> #include <string> #include <vector> diff --git a/include/tgbot/EventBroadcaster.h b/include/tgbot/EventBroadcaster.h index 978a6fe..86a82be 100644 --- a/include/tgbot/EventBroadcaster.h +++ b/include/tgbot/EventBroadcaster.h @@ -1,6 +1,7 @@ #ifndef TGBOT_EVENTBROADCASTER_H #define TGBOT_EVENTBROADCASTER_H +#include <initializer_list> #include <string> #include <functional> #include <vector> diff --git a/include/tgbot/TgTypeParser.h b/include/tgbot/TgTypeParser.h index 02f8ee5..91e99ef 100644 --- a/include/tgbot/TgTypeParser.h +++ b/include/tgbot/TgTypeParser.h @@ -1,7 +1,11 @@ #ifndef TGBOT_CPP_TGTYPEPARSER_H #define TGBOT_CPP_TGTYPEPARSER_H +#include <memory> +#include <sstream> #include <string> +#include <vector> +#include <utility> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> diff --git a/include/tgbot/net/BoostHttpOnlySslClient.h b/include/tgbot/net/BoostHttpOnlySslClient.h index 594b3fe..9ddbba2 100644 --- a/include/tgbot/net/BoostHttpOnlySslClient.h +++ b/include/tgbot/net/BoostHttpOnlySslClient.h @@ -2,6 +2,7 @@ #define TGBOT_BOOSTHTTPCLIENT_H #include <string> +#include <vector> #include <boost/asio.hpp> diff --git a/include/tgbot/net/CurlHttpClient.h b/include/tgbot/net/CurlHttpClient.h index 202cc40..cf120a4 100644 --- a/include/tgbot/net/CurlHttpClient.h +++ b/include/tgbot/net/CurlHttpClient.h @@ -4,6 +4,7 @@ #ifdef HAVE_CURL #include <string> +#include <vector> #include <curl/curl.h> diff --git a/include/tgbot/net/HttpClient.h b/include/tgbot/net/HttpClient.h index d9c72be..8542153 100644 --- a/include/tgbot/net/HttpClient.h +++ b/include/tgbot/net/HttpClient.h @@ -2,6 +2,7 @@ #define TGBOT_HTTPCLIENT_H #include <string> +#include <vector> #include "tgbot/net/Url.h" #include "tgbot/net/HttpReqArg.h" diff --git a/include/tgbot/net/HttpReqArg.h b/include/tgbot/net/HttpReqArg.h index 72dfd7d..30ab407 100644 --- a/include/tgbot/net/HttpReqArg.h +++ b/include/tgbot/net/HttpReqArg.h @@ -4,7 +4,6 @@ #include "tgbot/export.h" #include <string> -#include <utility> #include <vector> #include <functional> diff --git a/include/tgbot/net/HttpServer.h b/include/tgbot/net/HttpServer.h index ccee077..2eb229a 100644 --- a/include/tgbot/net/HttpServer.h +++ b/include/tgbot/net/HttpServer.h @@ -2,8 +2,12 @@ #define TGBOT_HTTPSERVER_H #include <cstddef> +#include <exception> +#include <functional> #include <iostream> +#include <memory> #include <string> +#include <unordered_map> #include <utility> #include <boost/asio.hpp> diff --git a/include/tgbot/net/TgWebhookLocalServer.h b/include/tgbot/net/TgWebhookLocalServer.h index 2a64374..4f1dc2b 100644 --- a/include/tgbot/net/TgWebhookLocalServer.h +++ b/include/tgbot/net/TgWebhookLocalServer.h @@ -3,6 +3,8 @@ #ifdef BOOST_ASIO_HAS_LOCAL_SOCKETS +#include <string> + #include "tgbot/net/TgWebhookServer.h" namespace TgBot { diff --git a/include/tgbot/net/TgWebhookServer.h b/include/tgbot/net/TgWebhookServer.h index 2f3c5b8..f0b08b3 100644 --- a/include/tgbot/net/TgWebhookServer.h +++ b/include/tgbot/net/TgWebhookServer.h @@ -1,6 +1,8 @@ #ifndef TGBOT_TGHTTPSERVER_H #define TGBOT_TGHTTPSERVER_H +#include <string> +#include <unordered_map> #include <utility> #include "tgbot/Bot.h" diff --git a/include/tgbot/net/TgWebhookTcpServer.h b/include/tgbot/net/TgWebhookTcpServer.h index 28ae8aa..53eec17 100644 --- a/include/tgbot/net/TgWebhookTcpServer.h +++ b/include/tgbot/net/TgWebhookTcpServer.h @@ -1,6 +1,8 @@ #ifndef TGBOT_TGWEBHOOKTCPSERVER_H #define TGBOT_TGWEBHOOKTCPSERVER_H +#include <string> + #include "tgbot/net/TgWebhookServer.h" namespace TgBot { |