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::Net::LoopBridge, Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::Codecs::Bach, Atlas::PresentationBridge, Atlas::Formatter, Atlas::MultiLineListFormatter, DebugBridge, and DebugBridge.
Referenced by Atlas::Formatter::listEnd(), and Atlas::Net::LoopBridge::listEnd().
|
pure virtual |
Adds a float to the currently streamed list.
Implemented in Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, Atlas::Net::LoopBridge, Atlas::MultiLineListFormatter, DebugBridge, and DebugBridge.
Referenced by Atlas::Formatter::listFloatItem(), and Atlas::Net::LoopBridge::listFloatItem().
|
pure virtual |
Adds an integer to the currently streamed list.
Implemented in Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, Atlas::MultiLineListFormatter, and Atlas::Net::LoopBridge.
Referenced by Atlas::Formatter::listIntItem(), and Atlas::Net::LoopBridge::listIntItem().
|
pure virtual |
Starts a list object in the currently streamed list.
Implemented in Atlas::Net::LoopBridge, Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, Atlas::MultiLineListFormatter, DebugBridge, and DebugBridge.
Referenced by Atlas::Formatter::listListItem(), and Atlas::Net::LoopBridge::listListItem().
|
pure virtual |
Starts a map object in the currently streamed list.
Implemented in Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Net::LoopBridge, Atlas::Message::DecoderBase, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, Atlas::MultiLineListFormatter, DebugBridge, and DebugBridge.
Referenced by Atlas::Formatter::listMapItem(), and Atlas::Net::LoopBridge::listMapItem().
|
pure virtual |
Adds an empty item to the currently streamed list.
Implemented in Atlas::Net::LoopBridge, Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::Codecs::Bach, Atlas::PresentationBridge, Atlas::Formatter, and Atlas::MultiLineListFormatter.
Referenced by Atlas::Formatter::listNoneItem(), and Atlas::Net::LoopBridge::listNoneItem().
|
pure virtual |
Adds a string to the currently streamed list.
Implemented in Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::Codecs::Bach, Atlas::PresentationBridge, Atlas::Formatter, Atlas::MultiLineListFormatter, and Atlas::Net::LoopBridge.
Referenced by Atlas::Formatter::listStringItem(), and Atlas::Net::LoopBridge::listStringItem().
|
pure virtual |
Ends the currently streamed map.
Implemented in Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Net::LoopBridge, Atlas::Message::DecoderBase, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, DebugBridge, and DebugBridge.
Referenced by Atlas::Formatter::mapEnd(), Atlas::Net::LoopBridge::mapEnd(), and Atlas::Objects::ObjectsEncoder::streamObjectsMessage().
|
pure virtual |
Adds a float to the currently streamed map.
Implemented in Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, and Atlas::Net::LoopBridge.
Referenced by Atlas::Formatter::mapFloatItem(), and Atlas::Net::LoopBridge::mapFloatItem().
|
pure virtual |
Adds an integer to the currently streamed map.
Implemented in Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, and Atlas::Net::LoopBridge.
Referenced by Atlas::Formatter::mapIntItem(), and Atlas::Net::LoopBridge::mapIntItem().
|
pure virtual |
Starts a list object to the currently streamed map.
Implemented in Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Net::LoopBridge, Atlas::Formatter, and Atlas::MultiLineListFormatter.
Referenced by Atlas::Formatter::mapListItem(), and Atlas::Net::LoopBridge::mapListItem().
|
pure virtual |
Starts a map object to the currently streamed map.
Implemented in Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, and Atlas::Net::LoopBridge.
Referenced by Atlas::Net::LoopBridge::mapMapItem(), and Atlas::Formatter::mapMapItem().
|
pure virtual |
Adds a none item to the currently streamed map.
Implemented in Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::Net::LoopBridge, Atlas::PresentationBridge, Atlas::Codecs::Bach, and Atlas::Formatter.
Referenced by Atlas::Formatter::mapNoneItem(), and Atlas::Net::LoopBridge::mapNoneItem().
|
pure virtual |
Adds a string to the currently streamed map.
Implemented in Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, and Atlas::Net::LoopBridge.
Referenced by Atlas::Formatter::mapStringItem(), and Atlas::Net::LoopBridge::mapStringItem().
|
pure virtual |
Begin an Atlas stream.
Implemented in Atlas::Message::DecoderBase, Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, Atlas::Net::LoopBridge, DebugBridge, and DebugBridge.
Referenced by Atlas::Net::LoopBridge::streamBegin(), and Atlas::Formatter::streamBegin().
|
pure virtual |
Ends the Atlas stream.
Implemented in Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, Atlas::Net::LoopBridge, DebugBridge, and DebugBridge.
Referenced by Atlas::Net::LoopBridge::streamEnd(), and Atlas::Formatter::streamEnd().
|
pure virtual |
Start a message in an Atlas stream.
Implemented in Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, Atlas::Net::LoopBridge, DebugBridge, and DebugBridge.
Referenced by Atlas::Net::LoopBridge::streamMessage(), Atlas::Formatter::streamMessage(), and Atlas::Objects::ObjectsEncoder::streamObjectsMessage().