39 #define __CPP_REDIS_REPLY_ERR 0 40 #define __CPP_REDIS_REPLY_BULK 1 41 #define __CPP_REDIS_REPLY_SIMPLE 2 42 #define __CPP_REDIS_REPLY_NULL 3 43 #define __CPP_REDIS_REPLY_INT 4 44 #define __CPP_REDIS_REPLY_ARRAY 5 50 error = __CPP_REDIS_REPLY_ERR,
51 bulk_string = __CPP_REDIS_REPLY_BULK,
52 simple_string = __CPP_REDIS_REPLY_SIMPLE,
53 null = __CPP_REDIS_REPLY_NULL,
54 integer = __CPP_REDIS_REPLY_INT,
55 array = __CPP_REDIS_REPLY_ARRAY
62 error = __CPP_REDIS_REPLY_ERR,
63 bulk_string = __CPP_REDIS_REPLY_BULK,
64 simple_string = __CPP_REDIS_REPLY_SIMPLE
94 reply(
const std::vector<reply>& rows);
157 operator bool(
void)
const;
163 const std::string&
error(
void)
const;
168 const std::vector<reply>&
as_array(
void)
const;
173 const std::string&
as_string(
void)
const;
192 void set(
const std::string& value,
string_type reply_type);
199 void set(int64_t value);
206 void set(
const std::vector<reply>& rows);
224 std::vector<cpp_redis::reply> m_rows;
225 std::string m_str_val;
reply & operator<<(const reply &reply)
int64_t as_integer(void) const
const std::vector< reply > & as_array(void) const
const std::string & as_string(void) const
bool is_simple_string(void) const
bool is_bulk_string(void) const
bool is_integer(void) const
bool is_array(void) const
bool is_string(void) const
bool is_error(void) const
type
Definition: reply.hpp:49
string_type
Definition: reply.hpp:61
reply & operator=(const reply &)=default
assignment operator
const std::string & error(void) const
Definition: array_builder.hpp:29
type get_type(void) const