Atlas
0.7.0
Networking protocol for the Worldforge system.
|
#include <Layer.h>
Public Member Functions | |
Layer (Atlas::Bridge *b) | |
void | streamMessageElement (const MapType &obj) |
Send a message (must be a map!) in stream state. More... | |
void | mapElementItem (const std::string &, const Element &) |
Send an object as a map item. More... | |
void | mapElementMapItem (const std::string &, const MapType &) |
void | mapElementListItem (const std::string &, const ListType &) |
void | listElementItem (const Element &) |
Send an object as a list item. More... | |
void | listElementMapItem (const MapType &) |
void | listElementListItem (const ListType &) |
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... | |
Layer that combines Atlas::Message::Encoder and a decoder.
This class simply combines Atlas::Message::Encoder and a decoder of your choice (derived from DecoderBase) into a single layer.
|
inherited |
Send an object as a list item.
Definition at line 19 of file MEncoder.cpp.
References Atlas::Message::Element::getType().
|
inherited |
Send an object as a map item.
Definition at line 66 of file MEncoder.cpp.
References Atlas::Message::Element::getType().
Referenced by Atlas::Objects::BaseObjectData::sendContents().
|
inherited |
Send a message (must be a map!) in stream state.
Definition at line 114 of file MEncoder.cpp.
|
protectedinherited |
The bridge that requests are forwarded to.
Definition at line 64 of file EncoderBase.h.
Referenced by Atlas::EncoderBase::EncoderBase(), and Atlas::Objects::ObjectsEncoder::streamObjectsMessage().