#include <OTStorage.hpp>
Definition at line 542 of file OTStorage.hpp.
opentxs::OTDB::OTPacker::OTPacker |
( |
| ) |
|
|
inlineprotected |
virtual opentxs::OTDB::OTPacker::~OTPacker |
( |
| ) |
|
|
inlinevirtual |
Definition at line 889 of file OTStorage.cpp.
894 #if defined(OTDB_MESSAGE_PACK)
896 pPacker =
new PackerMsgpack;
900 #if defined(OTDB_PROTOCOL_BUFFERS)
902 pPacker =
new PackerPB;
virtual PackedBuffer* opentxs::OTDB::OTPacker::CreateBuffer |
( |
| ) |
|
|
pure virtual |
PackType opentxs::OTDB::OTPacker::GetType |
( |
| ) |
const |
Definition at line 914 of file OTStorage.cpp.
916 #if defined(OTDB_MESSAGE_PACK)
919 #if defined(OTDB_PROTOCOL_BUFFERS)
Definition at line 930 of file OTStorage.cpp.
932 IStorable* pStorable =
dynamic_cast<IStorable*
>(&
inObj);
938 otErr <<
"OTPacker::Pack: Error: IStorable dynamic_cast failed.\n";
949 pStorable->hookBeforePack();
957 if (!pStorable->onPack(*pBuffer,
inObj)) {
OTLOG_IMPORT OTLogStream otErr
virtual PackedBuffer * CreateBuffer()=0
PackedBuffer * opentxs::OTDB::OTPacker::Pack |
( |
std::string & |
inObj | ) |
|
Definition at line 992 of file OTStorage.cpp.
1001 if (!pBuffer->PackString(
inObj)) {
virtual PackedBuffer * CreateBuffer()=0
Definition at line 972 of file OTStorage.cpp.
974 IStorable* pStorable =
dynamic_cast<IStorable*
>(&outObj);
976 if (
nullptr == pStorable)
return false;
982 if (!pStorable->onUnpack(inBuf, outObj)) {
986 pStorable->hookAfterUnpack();
bool opentxs::OTDB::OTPacker::Unpack |
( |
PackedBuffer & |
inBuf, |
|
|
std::string & |
outObj |
|
) |
| |
Definition at line 1009 of file OTStorage.cpp.
1016 if (!inBuf.UnpackString(outObj))
return false;
The documentation for this class was generated from the following files: