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);
153 operator bool(
void)
const;
159 const std::string& error(
void)
const;
164 const std::vector<reply>&
as_array(
void)
const;
169 const std::string&
as_string(
void)
const;
188 void set(
const std::string& value,
string_type reply_type);
195 void set(int64_t value);
202 void set(
const std::vector<reply>& rows);
220 std::vector<cpp_redis::reply> m_rows;
221 std::string m_strval;
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
Definition: array_builder.hpp:29
type get_type(void) const