Anope IRC Services  Version 2.0
Public Types | Public Member Functions | Data Fields
Redis::Reply Struct Reference

#include <redis.h>

Collaboration diagram for Redis::Reply:
Collaboration graph
[legend]

Public Types

enum  Type {
  NOT_PARSED, NOT_OK, OK, INT,
  BULK, MULTI_BULK
}
 

Public Member Functions

 Reply ()
 
 ~Reply ()
 
void Clear ()
 

Data Fields

enum Redis::Reply::Type type
 
int64_t i
 
Anope::string bulk
 
int multi_bulk_size
 
std::deque< Reply * > multi_bulk
 

Detailed Description

Definition at line 12 of file redis.h.

Member Enumeration Documentation

Enumerator
NOT_PARSED 
NOT_OK 
OK 
INT 
BULK 
MULTI_BULK 

Definition at line 14 of file redis.h.

Constructor & Destructor Documentation

Redis::Reply::Reply ( )
inline

Definition at line 25 of file redis.h.

References Clear().

Redis::Reply::~Reply ( )
inline

Definition at line 26 of file redis.h.

References Clear().

Member Function Documentation

void Redis::Reply::Clear ( )
inline

Definition at line 28 of file redis.h.

References bulk, Anope::string::clear(), i, multi_bulk, multi_bulk_size, NOT_PARSED, and type.

Referenced by RedisSocket::Read(), Reply(), and ~Reply().

Field Documentation

Anope::string Redis::Reply::bulk
int64_t Redis::Reply::i

Definition at line 39 of file redis.h.

Referenced by Clear(), IDInterface::OnResult(), and RedisSocket::ParseReply().

std::deque<Reply *> Redis::Reply::multi_bulk
int Redis::Reply::multi_bulk_size

Definition at line 41 of file redis.h.

Referenced by Clear(), RedisSocket::ParseReply(), and RedisSocket::Read().

enum Redis::Reply::Type Redis::Reply::type

The documentation for this struct was generated from the following file: