LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Namespaces | Classes | Enumerations | Functions
LogCabin::Tree Namespace Reference

Namespaces

namespace  ProtoBuf
namespace  Internal

Classes

struct  Result
 Returned by Tree operations; contain a status code and an error message. More...
class  Tree
 This is an in-memory, hierarchical key-value store. More...

Enumerations

enum  Status {
  OK,
  INVALID_ARGUMENT,
  LOOKUP_ERROR,
  TYPE_ERROR,
  CONDITION_NOT_MET
}
 Status codes returned by Tree operations. More...

Functions

std::ostream & operator<< (std::ostream &os, Status status)
 Print a status code to a stream.

Enumeration Type Documentation

Status codes returned by Tree operations.

Enumerator:
OK 

The operation completed successfully.

INVALID_ARGUMENT 

If an argument is malformed (for example, a path that does not start with a slash).

LOOKUP_ERROR 

If a file or directory that is required for the operation does not exist.

TYPE_ERROR 

If a directory exists where a file is required or a file exists where a directory is required.

CONDITION_NOT_MET 

A predicate on an operation was not satisfied.

Definition at line 38 of file Tree.h.


Function Documentation

std::ostream & LogCabin::Tree::operator<< ( std::ostream &  os,
Status  status 
)

Print a status code to a stream.

Definition at line 34 of file Tree.cc.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines