Files
rippled/modules/ripple_app/node/ripple_MdbBackendFactory.h
2013-07-23 14:53:48 -07:00

39 lines
900 B
C++

//------------------------------------------------------------------------------
/*
Copyright (c) 2011-2013, OpenCoin, Inc.
*/
//==============================================================================
#ifndef RIPPLE_MDBBACKENDFACTORY_H_INCLUDED
#define RIPPLE_MDBBACKENDFACTORY_H_INCLUDED
#if RIPPLE_MDB_AVAILABLE
/** Factory to produce a backend using MDB.
@note MDB is not currently available for Win32
@see NodeStore
*/
class MdbBackendFactory : public NodeStore::BackendFactory
{
private:
class Backend;
MdbBackendFactory ();
~MdbBackendFactory ();
public:
static MdbBackendFactory& getInstance ();
String getName () const;
NodeStore::Backend* createInstance (size_t keyBytes,
StringPairArray const& keyValues,
NodeStore::Scheduler& scheduler);
};
#endif
#endif