Open-Transactions
0.93.0-ge03d287
|
#include "util/Assert.hpp"
#include "containers/simple_ptr.hpp"
#include <deque>
#include <iostream>
#include <vector>
#include <map>
#include <string>
#include <cstdint>
Go to the source code of this file.
Namespaces | |
opentxs | |
opentxs::OTDB | |
opentxs::OTDB::details | |
Macros | |
#define | OTDB_PROTOCOL_BUFFERS 1 |
#define | OTDB_DEFAULT_PACKER OTDB::PACK_PROTOCOL_BUFFERS |
#define | OTDB_DEFAULT_STORAGE OTDB::STORE_FILESYSTEM |
#define | OTInterface class |
#define | DeclareInterface(name) |
#define | DeclareBasedInterface(name, base) |
#define | EndInterface |
#define | implements public |
#define | DEFINE_OT_DYNAMIC_CAST(CLASS_NAME) |
#define | DECLARE_PACKED_BUFFER_SUBCLASS(theNewType, thePackerType,theInterfaceType, theInternalType) |
#define | DECLARE_GET_ADD_REMOVE(name) |
#define | OT_USING_ISTORABLE_HOOKS |
Typedefs | |
typedef Storable *( | opentxs::OTDB::InstantiateFunc )() |
typedef std::pair< PackType, StoredObjectType > | opentxs::OTDB::InstantiateFuncKey |
typedef std::map < InstantiateFuncKey, InstantiateFunc * > | opentxs::OTDB::mapOfFunctions |
Functions | |
opentxs::OTDB::DeclareInterface (IStorable) virtual bool onPack(PackedBuffer &theBuffer | |
virtual bool | opentxs::OTDB::onUnpack (PackedBuffer &theBuffer, Storable &outObj)=0 |
virtual void | opentxs::OTDB::hookBeforePack () |
virtual void | opentxs::OTDB::hookAfterUnpack () |
EXPORT bool | opentxs::OTDB::InitDefaultStorage (StorageType eStoreType, PackType ePackType) |
EXPORT Storage * | opentxs::OTDB::GetDefaultStorage () |
EXPORT Storage * | opentxs::OTDB::CreateStorageContext (StorageType eStoreType, PackType ePackType=OTDB_DEFAULT_PACKER) |
EXPORT Storable * | opentxs::OTDB::CreateObject (StoredObjectType eType) |
EXPORT bool | opentxs::OTDB::CheckStringsExistInOrder (std::string &strFolder, std::string &oneStr, std::string &twoStr, std::string &threeStr, const char *szFuncName=nullptr) |
EXPORT bool | opentxs::OTDB::Exists (std::string strFolder, std::string oneStr="", std::string twoStr="", std::string threeStr="") |
EXPORT int64_t | opentxs::OTDB::FormPathString (std::string &strOutput, std::string strFolder, std::string oneStr="", std::string twoStr="", std::string threeStr="") |
EXPORT bool | opentxs::OTDB::StoreString (std::string strContents, std::string strFolder, std::string oneStr="", std::string twoStr="", std::string threeStr="") |
EXPORT std::string | opentxs::OTDB::QueryString (std::string strFolder, std::string oneStr="", std::string twoStr="", std::string threeStr="") |
EXPORT bool | opentxs::OTDB::StorePlainString (std::string strContents, std::string strFolder, std::string oneStr="", std::string twoStr="", std::string threeStr="") |
EXPORT std::string | opentxs::OTDB::QueryPlainString (std::string strFolder, std::string oneStr="", std::string twoStr="", std::string threeStr="") |
EXPORT bool | opentxs::OTDB::StoreObject (Storable &theContents, std::string strFolder, std::string oneStr="", std::string twoStr="", std::string threeStr="") |
EXPORT Storable * | opentxs::OTDB::QueryObject (StoredObjectType theObjectType, std::string strFolder, std::string oneStr="", std::string twoStr="", std::string threeStr="") |
EXPORT std::string | opentxs::OTDB::EncodeObject (Storable &theContents) |
EXPORT Storable * | opentxs::OTDB::DecodeObject (StoredObjectType theObjectType, std::string strInput) |
EXPORT bool | opentxs::OTDB::EraseValueByKey (std::string strFolder, std::string oneStr="", std::string twoStr="", std::string threeStr="") |
Variables | |
const char * | opentxs::OTDB::StoredObjectTypeStrings [] |
OTDB::Storage * | opentxs::OTDB::details::s_pStorage = nullptr |
OTDB::mapOfFunctions * | opentxs::OTDB::details::pFunctionMap |
Storable & | opentxs::OTDB::inObj = 0 |
#define DECLARE_GET_ADD_REMOVE | ( | name | ) |
Definition at line 893 of file OTStorage.hpp.
#define DECLARE_PACKED_BUFFER_SUBCLASS | ( | theNewType, | |
thePackerType, | |||
theInterfaceType, | |||
theInternalType | |||
) |
Definition at line 506 of file OTStorage.hpp.
#define DeclareBasedInterface | ( | name, | |
base | |||
) |
Definition at line 195 of file OTStorage.hpp.
#define DeclareInterface | ( | name | ) |
Definition at line 187 of file OTStorage.hpp.
#define DEFINE_OT_DYNAMIC_CAST | ( | CLASS_NAME | ) |
Definition at line 414 of file OTStorage.hpp.
#define EndInterface |
Definition at line 203 of file OTStorage.hpp.
#define implements public |
Definition at line 207 of file OTStorage.hpp.
#define OT_USING_ISTORABLE_HOOKS |
Definition at line 1967 of file OTStorage.hpp.
#define OTDB_DEFAULT_PACKER OTDB::PACK_PROTOCOL_BUFFERS |
Definition at line 167 of file OTStorage.hpp.
#define OTDB_DEFAULT_STORAGE OTDB::STORE_FILESYSTEM |
Definition at line 169 of file OTStorage.hpp.
#define OTDB_PROTOCOL_BUFFERS 1 |
#define OTDB_MESSAGE_PACK 1 // Note: deactivating MsgPack for now, since we don't use it, and since I don't want to have to add it to the Android NDK build.
Definition at line 163 of file OTStorage.hpp.
#define OTInterface class |
Definition at line 185 of file OTStorage.hpp.