Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
leveldb::Status Class Reference

#include <status.h>

Public Member Functions

 Status ()
 
 ~Status ()
 
 Status (const Status &s)
 
void operator= (const Status &s)
 
bool ok () const
 
bool IsNotFound () const
 
bool IsCorruption () const
 
bool IsIOError () const
 
std::string ToString () const
 

Static Public Member Functions

static Status OK ()
 
static Status NotFound (const Slice &msg, const Slice &msg2=Slice())
 
static Status Corruption (const Slice &msg, const Slice &msg2=Slice())
 
static Status NotSupported (const Slice &msg, const Slice &msg2=Slice())
 
static Status InvalidArgument (const Slice &msg, const Slice &msg2=Slice())
 
static Status IOError (const Slice &msg, const Slice &msg2=Slice())
 

Private Types

enum  Code {
  kOk = 0, kNotFound = 1, kCorruption = 2, kNotSupported = 3,
  kInvalidArgument = 4, kIOError = 5
}
 

Private Member Functions

Code code () const
 
 Status (Code code, const Slice &msg, const Slice &msg2)
 

Static Private Member Functions

static const char * CopyState (const char *s)
 

Private Attributes

const char * state_
 

Detailed Description

Definition at line 21 of file status.h.

Member Enumeration Documentation

enum leveldb::Status::Code
private
Enumerator
kOk 
kNotFound 
kCorruption 
kNotSupported 
kInvalidArgument 
kIOError 

Definition at line 75 of file status.h.

Constructor & Destructor Documentation

leveldb::Status::Status ( )
inline

Definition at line 24 of file status.h.

leveldb::Status::~Status ( )
inline

Definition at line 25 of file status.h.

leveldb::Status::Status ( const Status s)
inline

Definition at line 92 of file status.h.

leveldb::Status::Status ( Code  code,
const Slice msg,
const Slice msg2 
)
private

Definition at line 19 of file status.cc.

Member Function Documentation

Code leveldb::Status::code ( ) const
inlineprivate

Definition at line 84 of file status.h.

const char * leveldb::Status::CopyState ( const char *  s)
staticprivate

Definition at line 11 of file status.cc.

static Status leveldb::Status::Corruption ( const Slice msg,
const Slice msg2 = Slice() 
)
inlinestatic

Definition at line 38 of file status.h.

static Status leveldb::Status::InvalidArgument ( const Slice msg,
const Slice msg2 = Slice() 
)
inlinestatic

Definition at line 44 of file status.h.

static Status leveldb::Status::IOError ( const Slice msg,
const Slice msg2 = Slice() 
)
inlinestatic

Definition at line 47 of file status.h.

bool leveldb::Status::IsCorruption ( ) const
inline

Definition at line 58 of file status.h.

bool leveldb::Status::IsIOError ( ) const
inline

Definition at line 61 of file status.h.

bool leveldb::Status::IsNotFound ( ) const
inline

Definition at line 55 of file status.h.

static Status leveldb::Status::NotFound ( const Slice msg,
const Slice msg2 = Slice() 
)
inlinestatic

Definition at line 35 of file status.h.

static Status leveldb::Status::NotSupported ( const Slice msg,
const Slice msg2 = Slice() 
)
inlinestatic

Definition at line 41 of file status.h.

static Status leveldb::Status::OK ( )
inlinestatic

Definition at line 32 of file status.h.

bool leveldb::Status::ok ( ) const
inline

Definition at line 52 of file status.h.

void leveldb::Status::operator= ( const Status s)
inline

Definition at line 95 of file status.h.

std::string leveldb::Status::ToString ( ) const

Definition at line 36 of file status.cc.

Member Data Documentation

const char* leveldb::Status::state_
private

Definition at line 73 of file status.h.


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