mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-19 18:15:50 +00:00
30 lines
708 B
C++
30 lines
708 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.
|
|
*/
|
|
class NullBackendFactory : public NodeStore::BackendFactory
|
|
{
|
|
private:
|
|
class Backend;
|
|
|
|
NullBackendFactory ();
|
|
~NullBackendFactory ();
|
|
|
|
public:
|
|
static NullBackendFactory& getInstance ();
|
|
|
|
String getName () const;
|
|
NodeStore::Backend* createInstance (StringPairArray const& keyValues);
|
|
};
|
|
|
|
#endif
|