mastodon-cpp
0.110.0
|
Return types for calls that return a single Easy::Entity
.
More...
#include <return_types_easy.hpp>
Public Member Functions | |
return_entity (const uint8_t ec, const string &em, const uint16_t hec, const T &ent) | |
Return type for easy Mastodon::Easy::API. More... | |
return_entity (const error ec, const string &em, const uint16_t hec, const T &ent) | |
Return type for easy Mastodon::Easy::API. More... | |
operator const T () const | |
Same as return_entity::entity. More... | |
operator const string () const | |
Mastodon::Easy::Entity as formatted string. More... | |
![]() | |
operator bool () const | |
true if return_base::error_code is 0, otherwise false. More... | |
operator uint8_t () const | |
Same as return_base::error_code. More... | |
Public Attributes | |
T | entity |
Mastodon::Easy::Entity. More... | |
![]() | |
uint8_t | error_code = 0 |
Error code. More... | |
string | error_message |
The error message, or "". More... | |
uint16_t | http_error_code = 0 |
HTTP error code. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const return_entity< T > &ret) |
Mastodon::Easy::Entity as formatted string. More... | |
Return types for calls that return a single Easy::Entity
.
Easy::return_entity::return_entity | ( | const uint8_t | ec, |
const string & | em, | ||
const uint16_t | hec, | ||
const T & | ent | ||
) |
Return type for easy Mastodon::Easy::API.
ec | Error code |
em | Error message |
hec | HTTP error code |
ent | Answer |
Easy::return_entity::return_entity | ( | const error | ec, |
const string & | em, | ||
const uint16_t | hec, | ||
const T & | ent | ||
) |
Return type for easy Mastodon::Easy::API.
ec | Error code |
em | Error message |
hec | HTTP error code |
ent | Answer |
Mastodon::Easy::return_entity< T >::operator const string | ( | ) | const |
Mastodon::Easy::Entity as formatted string.
Mastodon::Easy::return_entity< T >::operator const T | ( | ) | const |
Same as return_entity::entity.
|
friend |
Mastodon::Easy::Entity as formatted string.
T Mastodon::Easy::return_entity< T >::entity |