#include <reply.hpp>
◆ string_type
specific type of replies for string-based replies
Enumerator |
---|
error | |
bulk_string | |
simple_string | |
◆ type
type of reply, baed on redis server standard replies
Enumerator |
---|
error | |
bulk_string | |
simple_string | |
null | |
integer | |
array | |
◆ reply() [1/5]
cpp_redis::reply::reply |
( |
void |
| ) |
|
default ctor (set a null reply)
◆ reply() [2/5]
cpp_redis::reply::reply |
( |
const std::string & |
value, |
|
|
string_type |
reply_type |
|
) |
| |
ctor for string values
- Parameters
-
value | string value |
reply_type | of string reply |
◆ reply() [3/5]
cpp_redis::reply::reply |
( |
int64_t |
value | ) |
|
ctor for int values
- Parameters
-
◆ reply() [4/5]
cpp_redis::reply::reply |
( |
const std::vector< reply > & |
rows | ) |
|
ctor for array values
- Parameters
-
- Returns
- current instance
◆ ~reply()
cpp_redis::reply::~reply |
( |
void |
| ) |
|
|
default |
◆ reply() [5/5]
cpp_redis::reply::reply |
( |
const reply & |
| ) |
|
|
default |
◆ as_array()
const std::vector<reply>& cpp_redis::reply::as_array |
( |
void |
| ) |
const |
- Returns
- the underlying array
◆ as_integer()
int64_t cpp_redis::reply::as_integer |
( |
void |
| ) |
const |
- Returns
- the underlying integer
◆ as_string()
const std::string& cpp_redis::reply::as_string |
( |
void |
| ) |
const |
- Returns
- the underlying string
◆ error()
const std::string& cpp_redis::reply::error |
( |
void |
| ) |
const |
- Returns
- the underlying error
◆ get_type()
type cpp_redis::reply::get_type |
( |
void |
| ) |
const |
◆ is_array()
bool cpp_redis::reply::is_array |
( |
void |
| ) |
const |
- Returns
- whether the reply is an array
◆ is_bulk_string()
bool cpp_redis::reply::is_bulk_string |
( |
void |
| ) |
const |
- Returns
- whether the reply is a bulk string
◆ is_error()
bool cpp_redis::reply::is_error |
( |
void |
| ) |
const |
- Returns
- whether the reply is an error
◆ is_integer()
bool cpp_redis::reply::is_integer |
( |
void |
| ) |
const |
- Returns
- whether the reply is an integer
◆ is_null()
bool cpp_redis::reply::is_null |
( |
void |
| ) |
const |
- Returns
- whether the reply is null
◆ is_simple_string()
bool cpp_redis::reply::is_simple_string |
( |
void |
| ) |
const |
- Returns
- whether the reply is a simple string
◆ is_string()
bool cpp_redis::reply::is_string |
( |
void |
| ) |
const |
- Returns
- whether the reply is a string (simple, bulk, error)
◆ ko()
bool cpp_redis::reply::ko |
( |
void |
| ) |
const |
- Returns
- true if function is an error
◆ ok()
bool cpp_redis::reply::ok |
( |
void |
| ) |
const |
- Returns
- true if function is not an error
◆ operator bool()
cpp_redis::reply::operator bool |
( |
void |
| ) |
const |
convenience implicit conversion, same as !is_null() / ok()
◆ operator<<()
reply& cpp_redis::reply::operator<< |
( |
const reply & |
reply | ) |
|
for array replies, add a new row to the reply
- Parameters
-
reply | new row to be appended |
- Returns
- current instance
◆ operator=()
reply& cpp_redis::reply::operator= |
( |
const reply & |
| ) |
|
|
default |
◆ set() [1/4]
void cpp_redis::reply::set |
( |
void |
| ) |
|
◆ set() [2/4]
void cpp_redis::reply::set |
( |
const std::string & |
value, |
|
|
string_type |
reply_type |
|
) |
| |
set a string reply
- Parameters
-
value | string value |
reply_type | of string reply |
◆ set() [3/4]
void cpp_redis::reply::set |
( |
int64_t |
value | ) |
|
set an integer reply
- Parameters
-
◆ set() [4/4]
void cpp_redis::reply::set |
( |
const std::vector< reply > & |
rows | ) |
|
set an array reply
- Parameters
-
◆ m_intval
int64_t cpp_redis::reply::m_intval |
|
private |
◆ m_rows
◆ m_strval
std::string cpp_redis::reply::m_strval |
|
private |
◆ m_type
type cpp_redis::reply::m_type |
|
private |
The documentation for this class was generated from the following file: