OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
opencog::ProtocolBufferSerializer Class Reference

#include <ProtocolBufferSerializer.h>

Public Member Functions

 ProtocolBufferSerializer ()
 
 ~ProtocolBufferSerializer ()
 

Static Public Member Functions

static Atomdeserialize (const ZMQAtomMessage &atomMessage)
 
static void serialize (Atom &atom, ZMQAtomMessage *atomMessage)
 
static TruthValuedeserialize (const ZMQTruthValueMessage &truthValueMessage)
 
static void serialize (TruthValue &tv, ZMQTruthValueMessage *truthValueMessage)
 

Static Private Member Functions

static void deserializeAtom (const ZMQAtomMessage &atomMessage, Atom &atom)
 
static void serializeAtom (Atom &atom, ZMQAtomMessage *atomMessage)
 
static void deserializeAttentionValue (const ZMQAttentionValueHolderMessage &attentionValueHolderMessage, AttentionValue &av)
 
static void serializeAttentionValue (AttentionValue &av, ZMQAttentionValueHolderMessage *attentionValueHolderMessage)
 
static void deserializeAttentionValueHolder (const ZMQAttentionValueHolderMessage &attentionValueHolderMessage, AttentionValueHolder &attentionValueHolder)
 
static void serializeAttentionValueHolder (AttentionValueHolder &attentionValueHolder, ZMQAttentionValueHolderMessage *attentionValueHolderMessage)
 
static void deserializeLink (const ZMQAtomMessage &atomMessage, Link &link)
 
static void serializeLink (Link &link, ZMQAtomMessage *atomMessage)
 
static void deserializeNode (const ZMQAtomMessage &atomMessage, Node &node)
 
static void serializeNode (Node &node, ZMQAtomMessage *atomMessage)
 
static void deserializeCompositeTruthValue (const ZMQTruthValueMessage &truthValueMessage, CompositeTruthValue &tv)
 
static void serializeCompositeTruthValue (CompositeTruthValue &tv, ZMQTruthValueMessage *truthValueMessage)
 
static void deserializeCountTruthValue (const ZMQSingleTruthValueMessage &singleTruthValue, CountTruthValue &tv)
 
static void serializeCountTruthValue (CountTruthValue &tv, ZMQTruthValueMessage *truthValueMessage)
 
static void deserializeIndefiniteTruthValue (const ZMQSingleTruthValueMessage &singleTruthValue, IndefiniteTruthValue &tv)
 
static void serializeIndefiniteTruthValue (IndefiniteTruthValue &tv, ZMQTruthValueMessage *truthValueMessage)
 
static void serializeNullTruthValue (NullTruthValue &tv, ZMQTruthValueMessage *truthValueMessage)
 
static void deserializeSimpleTruthValue (const ZMQSingleTruthValueMessage &singleTruthValue, SimpleTruthValue &tv)
 
static void serializeSimpleTruthValue (SimpleTruthValue &tv, ZMQTruthValueMessage *truthValueMessage)
 
static void deserializeTrail (const ZMQTrailMessage &trailMessage, Trail &trail)
 
static void serializeTrail (Trail &trail, ZMQTrailMessage *trailMessage)
 
static void deserializeVersionHandle (const ZMQVersionHandleMessage &versionHandleMessage, VersionHandle &vh)
 
static void serializeVersionHandle (VersionHandle &vh, ZMQVersionHandleMessage *versionHandleMessage)
 
static TruthValuedeserialize (const ZMQSingleTruthValueMessage &singleTruthValueMessage)
 

Detailed Description

Definition at line 55 of file ProtocolBufferSerializer.h.

Constructor & Destructor Documentation

ProtocolBufferSerializer::ProtocolBufferSerializer ( )

Definition at line 44 of file ProtocolBufferSerializer.cc.

ProtocolBufferSerializer::~ProtocolBufferSerializer ( )

Definition at line 48 of file ProtocolBufferSerializer.cc.

Member Function Documentation

TruthValue * ProtocolBufferSerializer::deserialize ( const ZMQSingleTruthValueMessage singleTruthValueMessage)
staticprivate
Atom * ProtocolBufferSerializer::deserialize ( const ZMQAtomMessage atomMessage)
static
TruthValue * ProtocolBufferSerializer::deserialize ( const ZMQTruthValueMessage truthValueMessage)
static
void ProtocolBufferSerializer::deserializeAtom ( const ZMQAtomMessage atomMessage,
Atom atom 
)
staticprivate
void ProtocolBufferSerializer::deserializeAttentionValue ( const ZMQAttentionValueHolderMessage attentionValueHolderMessage,
AttentionValue av 
)
staticprivate
void ProtocolBufferSerializer::deserializeAttentionValueHolder ( const ZMQAttentionValueHolderMessage attentionValueHolderMessage,
AttentionValueHolder &  attentionValueHolder 
)
staticprivate

Definition at line 155 of file ProtocolBufferSerializer.cc.

References deserializeAttentionValue().

+ Here is the caller graph for this function:

void ProtocolBufferSerializer::deserializeCompositeTruthValue ( const ZMQTruthValueMessage truthValueMessage,
CompositeTruthValue &  tv 
)
staticprivate
void ProtocolBufferSerializer::deserializeCountTruthValue ( const ZMQSingleTruthValueMessage singleTruthValue,
CountTruthValue tv 
)
staticprivate
void ProtocolBufferSerializer::deserializeLink ( const ZMQAtomMessage atomMessage,
Link link 
)
staticprivate
void ProtocolBufferSerializer::deserializeNode ( const ZMQAtomMessage atomMessage,
Node node 
)
staticprivate

Definition at line 285 of file ProtocolBufferSerializer.cc.

References deserializeAtom(), and ZMQAtomMessage::name().

+ Here is the caller graph for this function:

void ProtocolBufferSerializer::deserializeSimpleTruthValue ( const ZMQSingleTruthValueMessage singleTruthValue,
SimpleTruthValue tv 
)
staticprivate
void ProtocolBufferSerializer::deserializeTrail ( const ZMQTrailMessage trailMessage,
Trail &  trail 
)
staticprivate

Definition at line 326 of file ProtocolBufferSerializer.cc.

References ZMQTrailMessage::maxsize(), ZMQTrailMessage::trail(), and ZMQTrailMessage::trail_size().

+ Here is the caller graph for this function:

void ProtocolBufferSerializer::deserializeVersionHandle ( const ZMQVersionHandleMessage versionHandleMessage,
VersionHandle &  vh 
)
staticprivate

Definition at line 429 of file ProtocolBufferSerializer.cc.

References ZMQVersionHandleMessage::indicator(), and ZMQVersionHandleMessage::substantive().

+ Here is the caller graph for this function:

void ProtocolBufferSerializer::serialize ( Atom atom,
ZMQAtomMessage atomMessage 
)
static

Definition at line 123 of file ProtocolBufferSerializer.cc.

References python.atom_type_names::atom, serializeLink(), and serializeNode().

+ Here is the caller graph for this function:

void ProtocolBufferSerializer::serialize ( TruthValue tv,
ZMQTruthValueMessage truthValueMessage 
)
static
void ProtocolBufferSerializer::serializeAtom ( Atom atom,
ZMQAtomMessage atomMessage 
)
staticprivate
void ProtocolBufferSerializer::serializeAttentionValue ( AttentionValue av,
ZMQAttentionValueHolderMessage attentionValueHolderMessage 
)
staticprivate
void ProtocolBufferSerializer::serializeAttentionValueHolder ( AttentionValueHolder &  attentionValueHolder,
ZMQAttentionValueHolderMessage attentionValueHolderMessage 
)
staticprivate

Definition at line 162 of file ProtocolBufferSerializer.cc.

References serializeAttentionValue().

+ Here is the caller graph for this function:

void ProtocolBufferSerializer::serializeCompositeTruthValue ( CompositeTruthValue &  tv,
ZMQTruthValueMessage truthValueMessage 
)
staticprivate
void ProtocolBufferSerializer::serializeLink ( Link link,
ZMQAtomMessage atomMessage 
)
staticprivate
void ProtocolBufferSerializer::serializeNode ( Node node,
ZMQAtomMessage atomMessage 
)
staticprivate

Definition at line 293 of file ProtocolBufferSerializer.cc.

References serializeAtom(), ZMQAtomMessage::set_atomtype(), ZMQAtomMessage::set_name(), and ZMQAtomTypeNode.

+ Here is the caller graph for this function:

void ProtocolBufferSerializer::serializeNullTruthValue ( NullTruthValue tv,
ZMQTruthValueMessage truthValueMessage 
)
staticprivate

Definition at line 303 of file ProtocolBufferSerializer.cc.

References ZMQTruthValueMessage::add_singletruthvalue(), ZMQSingleTruthValueMessage::set_truthvaluetype(), and ZMQTruthValueTypeNull.

+ Here is the caller graph for this function:

void ProtocolBufferSerializer::serializeTrail ( Trail &  trail,
ZMQTrailMessage trailMessage 
)
staticprivate

Definition at line 342 of file ProtocolBufferSerializer.cc.

References ZMQTrailMessage::add_trail(), and ZMQTrailMessage::set_maxsize().

+ Here is the caller graph for this function:

void ProtocolBufferSerializer::serializeVersionHandle ( VersionHandle &  vh,
ZMQVersionHandleMessage versionHandleMessage 
)
staticprivate

Definition at line 436 of file ProtocolBufferSerializer.cc.

References ZMQVersionHandleMessage::set_indicator(), and ZMQVersionHandleMessage::set_substantive().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: