|
tgbotxx 1.2.9.5
Telegram Bot C++ Library
|
#include <type_traits>#include <cstdint>#include <ctime>#include <iostream>#include <memory>#include <nlohmann/json.hpp>#include <sstream>#include <string>#include <tgbotxx/Exception.hpp>#include <tgbotxx/utils/Ptr.hpp>#include <vector>Go to the source code of this file.
Macros | |
| #define | TGBOTXX_CAT_IMPL(a, b) a##b |
| Available objects: https://core.telegram.org/bots/api#available-types. | |
| #define | TGBOTXX_CAT(a, b) TGBOTXX_CAT_IMPL(a, b) |
| #define | VAR(x) TGBOTXX_CAT(x, __LINE__) |
| Avoid expanded variable names collisions. | |
| #define | OBJECT_SERIALIZE_FIELD(json, json_field, field) |
| Serialize. | |
| #define | OBJECT_SERIALIZE_FIELD_PTR(json, json_field, field) |
| #define | OBJECT_SERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field) |
| #define | OBJECT_SERIALIZE_FIELD_PTR_ARRAY_ARRAY(json, json_field, array_array_field) |
| #define | OBJECT_SERIALIZE_FIELD_ENUM(json, enum_name, json_field, field) |
| #define | OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional) |
| Deserialize. | |
| #define | OBJECT_DESERIALIZE_FIELD_PTR(json, json_field, field, optional) |
| #define | OBJECT_DESERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field, optional) |
| #define | OBJECT_DESERIALIZE_FIELD_PTR_ARRAY_ARRAY(json, json_field, array_array_field, optional) |
| #define | OBJECT_DESERIALIZE_FIELD_ENUM(json, enum_name, json_field, field, default_value, optional) |
| #define OBJECT_DESERIALIZE_FIELD | ( | json, | |
| json_field, | |||
| field, | |||
| default_value, | |||
| optional | |||
| ) |
Deserialize.
Definition at line 64 of file Object.hpp.
| #define OBJECT_DESERIALIZE_FIELD_ENUM | ( | json, | |
| enum_name, | |||
| json_field, | |||
| field, | |||
| default_value, | |||
| optional | |||
| ) |
Definition at line 165 of file Object.hpp.
| #define OBJECT_DESERIALIZE_FIELD_PTR | ( | json, | |
| json_field, | |||
| field, | |||
| optional | |||
| ) |
Definition at line 92 of file Object.hpp.
| #define OBJECT_DESERIALIZE_FIELD_PTR_ARRAY | ( | json, | |
| json_field, | |||
| array_field, | |||
| optional | |||
| ) |
Definition at line 111 of file Object.hpp.
| #define OBJECT_DESERIALIZE_FIELD_PTR_ARRAY_ARRAY | ( | json, | |
| json_field, | |||
| array_array_field, | |||
| optional | |||
| ) |
Definition at line 135 of file Object.hpp.
| #define OBJECT_SERIALIZE_FIELD | ( | json, | |
| json_field, | |||
| field | |||
| ) |
Serialize.
Definition at line 27 of file Object.hpp.
| #define OBJECT_SERIALIZE_FIELD_ENUM | ( | json, | |
| enum_name, | |||
| json_field, | |||
| field | |||
| ) |
Definition at line 58 of file Object.hpp.
| #define OBJECT_SERIALIZE_FIELD_PTR | ( | json, | |
| json_field, | |||
| field | |||
| ) |
Definition at line 32 of file Object.hpp.
| #define OBJECT_SERIALIZE_FIELD_PTR_ARRAY | ( | json, | |
| json_field, | |||
| array_field | |||
| ) |
Definition at line 39 of file Object.hpp.
| #define OBJECT_SERIALIZE_FIELD_PTR_ARRAY_ARRAY | ( | json, | |
| json_field, | |||
| array_array_field | |||
| ) |
Definition at line 46 of file Object.hpp.
| #define TGBOTXX_CAT | ( | a, | |
| b | |||
| ) | TGBOTXX_CAT_IMPL(a, b) |
Definition at line 21 of file Object.hpp.
| #define TGBOTXX_CAT_IMPL | ( | a, | |
| b | |||
| ) | a##b |
Available objects: https://core.telegram.org/bots/api#available-types.
Helper macros to de/serialize objects Concatenate tokens
Definition at line 20 of file Object.hpp.
| #define VAR | ( | x | ) | TGBOTXX_CAT(x, __LINE__) |
Avoid expanded variable names collisions.
Definition at line 24 of file Object.hpp.