redis3m  1.0.0
 All Classes Functions Variables Enumerations Pages
Public Types | Public Member Functions | Friends | List of all members
redis3m::reply Class Reference

Represent a reply received from redis server. More...

#include <reply.h>

Public Types

enum  type_t {
  STRING = 1, ARRAY = 2, INTEGER = 3, NIL = 4,
  STATUS = 5, ERROR = 6
}
 Define reply type.
 

Public Member Functions

type_t type () const
 Type of reply, other field values are dependent of this. More...
 
const std::string & str () const
 Returns string value if present, otherwise an empty string. More...
 
long long integer () const
 Returns integer value if present, otherwise 0. More...
 
const std::vector< reply > & elements () const
 Returns a vector of sub-replies if present, otherwise an empty one. More...
 

Friends

class connection
 

Detailed Description

Represent a reply received from redis server.

Member Function Documentation

const std::vector<reply>& redis3m::reply::elements ( ) const
inline

Returns a vector of sub-replies if present, otherwise an empty one.

Returns
long long redis3m::reply::integer ( ) const
inline

Returns integer value if present, otherwise 0.

Returns
const std::string& redis3m::reply::str ( ) const
inline

Returns string value if present, otherwise an empty string.

Returns
type_t redis3m::reply::type ( ) const
inline

Type of reply, other field values are dependent of this.

Returns

The documentation for this class was generated from the following files: