13 #ifndef STORAGE_LEVELDB_INCLUDE_STATUS_H_ 14 #define STORAGE_LEVELDB_INCLUDE_STATUS_H_ 91 return (state_ == NULL) ?
kOk :
static_cast<Code>(state_[4]);
95 static const char*
CopyState(
const char* s);
112 #endif // STORAGE_LEVELDB_INCLUDE_STATUS_H_
static Status NotFound(const Slice &msg, const Slice &msg2=Slice())
static Status NotSupported(const Slice &msg, const Slice &msg2=Slice())
static const char * CopyState(const char *s)
void operator=(const Status &s)
bool IsNotSupportedError() const
bool IsCorruption() const
static Status Corruption(const Slice &msg, const Slice &msg2=Slice())
std::string ToString() const
static Status InvalidArgument(const Slice &msg, const Slice &msg2=Slice())
bool IsInvalidArgument() const
static Status IOError(const Slice &msg, const Slice &msg2=Slice())