cpp_redis: includes/cpp_redis/core/reply.hpp Source File
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
86 reply(int64_t value);
94 reply(const std::vector<reply>& rows);
97 ~reply(void) = default;
137 bool is_null(void) const;
143 bool ok(void) const;
148 bool ko(void) const;
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);
202 void set(const std::vector<reply>& rows);
220 std::vector<cpp_redis::reply> m_rows;
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