|
leveldb
|
#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_ |
|
private |
| Enumerator | |
|---|---|
| kOk | |
| kNotFound | |
| kCorruption | |
| kNotSupported | |
| kInvalidArgument | |
| kIOError | |
Definition at line 81 of file status.h.
|
inline |
|
inline |
|
inline |
Definition at line 19 of file status.cc.

|
inlineprivate |
Definition at line 90 of file status.h.


|
staticprivate |
|
inlinestatic |
Definition at line 38 of file status.h.


|
inlinestatic |
Definition at line 44 of file status.h.


|
inlinestatic |
Definition at line 47 of file status.h.


|
inline |
Definition at line 58 of file status.h.

|
inline |
Definition at line 67 of file status.h.

|
inline |
Definition at line 61 of file status.h.

|
inline |
Definition at line 55 of file status.h.


|
inline |
Definition at line 64 of file status.h.


|
inlinestatic |
Definition at line 35 of file status.h.


|
inlinestatic |
Definition at line 41 of file status.h.


|
inlinestatic |
|
inline |
| std::string leveldb::Status::ToString | ( | ) | const |
Definition at line 36 of file status.cc.


1.8.12