Bitcoin
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
 
bool IsNotSupportedError () const
 
bool IsInvalidArgument () 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_
 

Member Enumeration Documentation

◆ Code

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

Constructor & Destructor Documentation

◆ Status() [1/3]

leveldb::Status::Status ( )
inline

◆ ~Status()

leveldb::Status::~Status ( )
inline

◆ Status() [2/3]

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

◆ Status() [3/3]

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

Member Function Documentation

◆ code()

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

◆ CopyState()

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

◆ Corruption()

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

◆ InvalidArgument()

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

◆ IOError()

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

◆ IsCorruption()

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

◆ IsInvalidArgument()

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

◆ IsIOError()

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

◆ IsNotFound()

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

◆ IsNotSupportedError()

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

◆ NotFound()

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

◆ NotSupported()

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

◆ OK()

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

◆ ok()

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

◆ operator=()

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

◆ ToString()

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

Member Data Documentation

◆ state_

const char* leveldb::Status::state_
private

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