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

35 lines
859 B
C++

//------------------------------------------------------------------------------
/*
Copyright (c) 2011-2013, OpenCoin, Inc.
*/
//==============================================================================
#ifndef RIPPLE_NULLBACKENDFACTORY_H_INCLUDED
#define RIPPLE_NULLBACKENDFACTORY_H_INCLUDED
/** Factory to produce a null backend.
This is for standalone / testing mode.
@see NodeStore
*/
class NullBackendFactory : public NodeStore::BackendFactory
{
private:
class Backend;
NullBackendFactory ();
~NullBackendFactory ();
public:
static NullBackendFactory& getInstance ();
String getName () const;
NodeStore::Backend* createInstance (size_t keyBytes,
StringPairArray const& keyValues,
NodeStore::Scheduler& scheduler);
};
#endif