Atlas
0.7.0
Networking protocol for the Worldforge system.
|
#include <Codec.h>
Public Member Functions | |
virtual void | poll ()=0 |
virtual void | streamBegin ()=0 |
virtual void | streamMessage ()=0 |
virtual void | streamEnd ()=0 |
virtual void | mapMapItem (std::string name)=0 |
virtual void | mapListItem (std::string name)=0 |
virtual void | mapIntItem (std::string name, std::int64_t)=0 |
virtual void | mapFloatItem (std::string name, double)=0 |
virtual void | mapStringItem (std::string name, std::string)=0 |
virtual void | mapNoneItem (std::string name)=0 |
virtual void | mapEnd ()=0 |
virtual void | listMapItem ()=0 |
virtual void | listListItem ()=0 |
virtual void | listIntItem (std::int64_t)=0 |
virtual void | listFloatItem (double)=0 |
virtual void | listStringItem (std::string)=0 |
virtual void | listNoneItem ()=0 |
virtual void | listEnd ()=0 |
Atlas stream codec
This class presents an interface for sending and receiving Atlas messages. Each outgoing message is converted to a byte stream and piped through an optional chain of filters for compression or other transformations, then passed to a socket for transmission. Incoming messages are read from the socket, piped through the filters in the opposite direction and passed to a user specified Bridge callback class.
|
pure virtualinherited |
Ends the currently streamed list.
Implemented in Atlas::PresentationBridge, Atlas::Net::LoopBridge, Atlas::MultiLineListFormatter, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, Atlas::Codecs::Bach, DebugBridge, and DebugBridge.
Referenced by Atlas::Net::LoopBridge::listEnd().
|
pure virtualinherited |
Adds a float to the currently streamed list.
Implemented in Atlas::PresentationBridge, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, Atlas::Codecs::Bach, Atlas::Net::LoopBridge, Atlas::MultiLineListFormatter, DebugBridge, and DebugBridge.
Referenced by Atlas::Net::LoopBridge::listFloatItem().
|
pure virtualinherited |
Adds an integer to the currently streamed list.
Implemented in Atlas::PresentationBridge, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, Atlas::Codecs::Bach, Atlas::MultiLineListFormatter, and Atlas::Net::LoopBridge.
Referenced by Atlas::Net::LoopBridge::listIntItem().
|
pure virtualinherited |
Starts a list object in the currently streamed list.
Implemented in Atlas::PresentationBridge, Atlas::Net::LoopBridge, Atlas::MultiLineListFormatter, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, Atlas::Codecs::Bach, DebugBridge, and DebugBridge.
Referenced by Atlas::Net::LoopBridge::listListItem().
|
pure virtualinherited |
Starts a map object in the currently streamed list.
Implemented in Atlas::PresentationBridge, Atlas::Net::LoopBridge, Atlas::MultiLineListFormatter, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, Atlas::Codecs::Bach, DebugBridge, and DebugBridge.
Referenced by Atlas::Net::LoopBridge::listMapItem().
|
pure virtualinherited |
Adds an empty item to the currently streamed list.
Implemented in Atlas::PresentationBridge, Atlas::Net::LoopBridge, Atlas::MultiLineListFormatter, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, and Atlas::Codecs::Bach.
Referenced by Atlas::Net::LoopBridge::listNoneItem().
|
pure virtualinherited |
Adds a string to the currently streamed list.
Implemented in Atlas::PresentationBridge, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, Atlas::Codecs::Bach, Atlas::MultiLineListFormatter, and Atlas::Net::LoopBridge.
Referenced by Atlas::Net::LoopBridge::listStringItem().
|
pure virtualinherited |
Ends the currently streamed map.
Implemented in Atlas::PresentationBridge, Atlas::Net::LoopBridge, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, Atlas::Codecs::Bach, DebugBridge, and DebugBridge.
Referenced by Atlas::Net::LoopBridge::mapEnd(), and Atlas::Objects::ObjectsEncoder::streamObjectsMessage().
|
pure virtualinherited |
Adds a float to the currently streamed map.
Implemented in Atlas::PresentationBridge, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, Atlas::Codecs::Bach, and Atlas::Net::LoopBridge.
Referenced by Atlas::Net::LoopBridge::mapFloatItem().
|
pure virtualinherited |
Adds an integer to the currently streamed map.
Implemented in Atlas::PresentationBridge, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, Atlas::Codecs::Bach, and Atlas::Net::LoopBridge.
Referenced by Atlas::Net::LoopBridge::mapIntItem().
|
pure virtualinherited |
Starts a list object to the currently streamed map.
Implemented in Atlas::PresentationBridge, Atlas::Net::LoopBridge, Atlas::MultiLineListFormatter, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, and Atlas::Codecs::Bach.
Referenced by Atlas::Net::LoopBridge::mapListItem().
|
pure virtualinherited |
Starts a map object to the currently streamed map.
Implemented in Atlas::PresentationBridge, Atlas::Net::LoopBridge, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, and Atlas::Codecs::Bach.
Referenced by Atlas::Net::LoopBridge::mapMapItem().
|
pure virtualinherited |
Adds a none item to the currently streamed map.
Implemented in Atlas::PresentationBridge, Atlas::Net::LoopBridge, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, and Atlas::Codecs::Bach.
Referenced by Atlas::Net::LoopBridge::mapNoneItem().
|
pure virtualinherited |
Adds a string to the currently streamed map.
Implemented in Atlas::PresentationBridge, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, Atlas::Codecs::Bach, and Atlas::Net::LoopBridge.
Referenced by Atlas::Net::LoopBridge::mapStringItem().
|
pure virtualinherited |
Begin an Atlas stream.
Implemented in Atlas::PresentationBridge, Atlas::Net::LoopBridge, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, Atlas::Codecs::Bach, DebugBridge, and DebugBridge.
Referenced by Atlas::Net::LoopBridge::streamBegin().
|
pure virtualinherited |
Ends the Atlas stream.
Implemented in Atlas::PresentationBridge, Atlas::Net::LoopBridge, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, Atlas::Codecs::Bach, DebugBridge, and DebugBridge.
Referenced by Atlas::Net::LoopBridge::streamEnd().
|
pure virtualinherited |
Start a message in an Atlas stream.
Implemented in Atlas::PresentationBridge, Atlas::Net::LoopBridge, Atlas::Message::DecoderBase, Atlas::Formatter, Atlas::Codecs::XML, Atlas::Codecs::Packed, Atlas::Codecs::Bach, DebugBridge, and DebugBridge.
Referenced by Atlas::Net::LoopBridge::streamMessage(), and Atlas::Objects::ObjectsEncoder::streamObjectsMessage().