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