Move NodeStore and backends to ripple_core

This commit is contained in:
Vinnie Falco
2013-09-01 09:22:34 -07:00
parent 81a4711e66
commit 649b20a5f2
26 changed files with 205 additions and 231 deletions

View File

@@ -0,0 +1,32 @@
//------------------------------------------------------------------------------
/*
Copyright (c) 2011-2013, OpenCoin, Inc.
*/
//==============================================================================
#ifndef RIPPLE_CORE_NODE_LEVELDBBACKENDFACTORY_H_INCLUDED
#define RIPPLE_CORE_NODE_LEVELDBBACKENDFACTORY_H_INCLUDED
/** Factory to produce LevelDB backends for the NodeStore.
@see NodeStore
*/
class LevelDBBackendFactory : public NodeStore::BackendFactory
{
private:
class Backend;
LevelDBBackendFactory ();
~LevelDBBackendFactory ();
public:
static LevelDBBackendFactory& getInstance ();
String getName () const;
NodeStore::Backend* createInstance (size_t keyBytes,
StringPairArray const& keyValues,
NodeStore::Scheduler& scheduler);
};
#endif