![]() |
cpp_redis
4.0.0
cpp_redis is a C++11 Asynchronous Multi-Platform Lightweight Redis Client, with support for synchronous operations and pipelining.
|
#include <bulk_string_builder.hpp>
Public Member Functions | |
bulk_string_builder (void) | |
ctor More... | |
~bulk_string_builder (void)=default | |
dtor More... | |
bulk_string_builder (const bulk_string_builder &)=delete | |
copy ctor More... | |
bulk_string_builder & | operator= (const bulk_string_builder &)=delete |
assignment operator More... | |
builder_iface & | operator<< (std::string &data) |
bool | reply_ready (void) const |
reply | get_reply (void) const |
const std::string & | get_bulk_string (void) const |
bool | is_null (void) const |
![]() | |
virtual | ~builder_iface (void)=default |
Private Member Functions | |
void | build_reply (void) |
bool | fetch_size (std::string &str) |
void | fetch_str (std::string &str) |
Private Attributes | |
integer_builder | m_int_builder |
int | m_str_size |
std::string | m_str |
bool | m_is_null |
bool | m_reply_ready |
reply | m_reply |
builder to build redis bulk string replies
cpp_redis::builders::bulk_string_builder::bulk_string_builder | ( | void | ) |
ctor
|
default |
dtor
|
delete |
copy ctor
|
private |
|
private |
|
private |
const std::string& cpp_redis::builders::bulk_string_builder::get_bulk_string | ( | void | ) | const |
|
virtual |
Implements cpp_redis::builders::builder_iface.
bool cpp_redis::builders::bulk_string_builder::is_null | ( | void | ) | const |
|
virtual |
take data as parameter which is consumed to build the reply every bytes used to build the reply must be removed from the buffer passed as parameter
data | data to be consumed |
Implements cpp_redis::builders::builder_iface.
|
delete |
assignment operator
|
virtual |
Implements cpp_redis::builders::builder_iface.
|
private |
builder used to get bulk string size
|
private |
whether the bulk string is null
|
private |
reply to be built
|
private |
whether the reply is ready or not
|
private |
bulk string
|
private |
bulk string size