Atlas
0.7.0
Networking protocol for the Worldforge system.
|
#include <Bridge.h>
Public Member Functions | |
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 bridge
This class presents an interface that accepts an Atlas stream. The stream begins with a call to streamBegin() and finishes with streamEnd(). While the Bridge is in this stream context, a message can be sent using streamMessage(). This puts the Bridge into a map context, allowing various map*Item() calls.
Several classes are derived from Bridge, the most notable of which is Codec, which accepts an Atlas stream for encoding and transmission.
|
pure virtual |
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 virtual |
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 virtual |
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 virtual |
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 virtual |
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 virtual |
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 virtual |
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 virtual |
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 virtual |
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 virtual |
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 virtual |
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 virtual |
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 virtual |
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 virtual |
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 virtual |
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 virtual |
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 virtual |
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().