0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Functions
BerkeleyDbFilesystem.cc File Reference
#include <Common/Compat.h>
#include <Hyperspace/BerkeleyDbFilesystem.h>
#include <Hyperspace/DbtManaged.h>
#include <Common/Logger.h>
#include <Common/Path.h>
#include <Common/ScopeGuard.h>
#include <Common/Serialization.h>
#include <Common/String.h>
#include <Common/System.h>
#include <Common/SystemInfo.h>
#include <Common/Time.h>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <cctype>
#include <cstdlib>
#include <ostream>
#include <sstream>
#include <vector>
Include dependency graph for BerkeleyDbFilesystem.cc:

Go to the source code of this file.

Macros

#define HT_DEBUG_ATTR(_txn_, _fn_, _an_, _k_, _v_)
 
#define HT_DEBUG_ATTR_(_txn_, _fn_, _an_, _k_, _v_, _l_)
 

Functions

void close_db_cursor (Dbc **cursor)
 

Macro Definition Documentation

#define HT_DEBUG_ATTR (   _txn_,
  _fn_,
  _an_,
  _k_,
  _v_ 
)
Value:
HT_DEBUG_OUT <<"txn="<< (_txn_) <<" fname='"<< (_fn_) <<"' attr='"<< (_an_) \
<<"' key='"<< (char *)(_k_).get_data() <<"' value='"<< (_v_) <<"'" \
<< HT_END
#define HT_END
Definition: Logger.h:220
#define HT_DEBUG_OUT
Definition: Logger.h:261

Definition at line 51 of file BerkeleyDbFilesystem.cc.

#define HT_DEBUG_ATTR_ (   _txn_,
  _fn_,
  _an_,
  _k_,
  _v_,
  _l_ 
)
Value:
HT_DEBUG_OUT <<"txn="<< (_txn_) <<" fname='"<< (_fn_); \
if ((_an_) == String()) _out_ <<"' attr='"<< (_an_); \
_out_ <<"' key='" << (char *)(_k_).get_data(); \
if (_l_) _out_ <<"' value='"<< format_bytes(20, _v_, _l_); \
_out_ <<"'"<< HT_END
std::string String
A String is simply a typedef to std::string.
Definition: String.h:44
String format_bytes(size_t n, const void *buf, size_t len, const char *trailer)
Return first n bytes of buffer with an optional trailer if the size of the buffer exceeds n...
Definition: String.cc:103
#define HT_END
Definition: Logger.h:220
#define HT_DEBUG_OUT
Definition: Logger.h:261

Definition at line 56 of file BerkeleyDbFilesystem.cc.

Function Documentation

void close_db_cursor ( Dbc **  cursor)

Definition at line 63 of file BerkeleyDbFilesystem.cc.