Atlas
0.7.0
Networking protocol for the Worldforge system.
|
#include <Encoder.h>
Public Member Functions | |
ObjectsEncoder (Atlas::Bridge &b) | |
~ObjectsEncoder () override=default | |
The default destructor. More... | |
template<class ObjectData > | |
void | streamObjectsMessage (const Atlas::Objects::SmartPtr< ObjectData > &o) |
void | streamBegin () |
void | streamMessage () |
void | streamEnd () |
void | mapMapItem (const std::string &name) |
void | mapListItem (const std::string &name) |
void | mapIntItem (const std::string &name, std::int64_t i) |
void | mapFloatItem (const std::string &name, double d) |
void | mapStringItem (const std::string &name, const std::string &s) |
void | mapEnd () |
void | listMapItem () |
void | listListItem () |
void | listIntItem (std::int64_t i) |
void | listFloatItem (double d) |
void | listStringItem (const std::string &s) |
void | listEnd () |
Protected Attributes | |
Atlas::Bridge & | m_b |
The bridge that requests are forwarded to. More... | |
Objects hierarchy encoder
This Encoder can be used to send objects in the Atlas::Objects hierarchy to a certain Bridge (e.g. a codec).
Simply call the streamMessage member with a pointer to the object to be sent.
|
inlineexplicit |
The default constructor.
b | The Bridge to which objects are to be sent. |
Definition at line 31 of file Encoder.h.
References ~ObjectsEncoder().
|
overridedefault |
The default destructor.
Referenced by ObjectsEncoder().
|
inline |
Send an object to the bridge.
o | The object that is to be sent. |
Definition at line 38 of file Encoder.h.
References Atlas::EncoderBase::m_b, Atlas::Bridge::mapEnd(), and Atlas::Bridge::streamMessage().
|
protectedinherited |
The bridge that requests are forwarded to.
Definition at line 64 of file EncoderBase.h.
Referenced by Atlas::EncoderBase::EncoderBase(), and streamObjectsMessage().