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, DebugBridge, DebugBridge, Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::Codecs::Bach, Atlas::PresentationBridge, Atlas::Formatter, and Atlas::MultiLineListFormatter.
Referenced by Atlas::EncoderBase::EncoderBase(), Atlas::Net::LoopBridge::listEnd(), Atlas::Objects::Operation::RootOperationData::sendArgs(), Atlas::Objects::Entity::AccountData::sendCharacters(), Atlas::Objects::Entity::RootEntityData::sendContains(), Atlas::Objects::Entity::RootEntityData::sendPos(), and Atlas::Objects::Entity::RootEntityData::sendVelocity().
|
pure virtual |
Adds a float to the currently streamed list.
Implemented in Atlas::Net::LoopBridge, DebugBridge, Atlas::Codecs::Packed, Atlas::Codecs::XML, DebugBridge, Atlas::Message::DecoderBase, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, and Atlas::MultiLineListFormatter.
Referenced by Atlas::EncoderBase::EncoderBase(), Atlas::Net::LoopBridge::listFloatItem(), Atlas::Objects::Entity::RootEntityData::sendPos(), and Atlas::Objects::Entity::RootEntityData::sendVelocity().
|
pure virtual |
Adds an integer to 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, and Atlas::MultiLineListFormatter.
Referenced by Atlas::EncoderBase::EncoderBase(), 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, DebugBridge, DebugBridge, Atlas::Message::DecoderBase, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, and Atlas::MultiLineListFormatter.
Referenced by Atlas::EncoderBase::EncoderBase(), 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, DebugBridge, Atlas::Message::DecoderBase, DebugBridge, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, and Atlas::MultiLineListFormatter.
Referenced by Atlas::EncoderBase::EncoderBase(), Atlas::Net::LoopBridge::listMapItem(), and Atlas::Objects::Operation::RootOperationData::sendArgs().
|
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::Net::LoopBridge::listNoneItem().
|
pure virtual |
Adds a string 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::EncoderBase::EncoderBase(), Atlas::Net::LoopBridge::listStringItem(), Atlas::Objects::Entity::AccountData::sendCharacters(), and Atlas::Objects::Entity::RootEntityData::sendContains().
|
pure virtual |
Ends the currently streamed map.
Implemented in Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Net::LoopBridge, Atlas::Message::DecoderBase, DebugBridge, DebugBridge, Atlas::PresentationBridge, Atlas::Codecs::Bach, and Atlas::Formatter.
Referenced by Atlas::EncoderBase::EncoderBase(), Atlas::Net::LoopBridge::mapEnd(), Atlas::Objects::Operation::RootOperationData::sendArgs(), 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::Net::LoopBridge, Atlas::Codecs::Bach, and Atlas::Formatter.
Referenced by Atlas::EncoderBase::EncoderBase(), Atlas::Net::LoopBridge::mapFloatItem(), Atlas::Objects::Operation::RootOperationData::sendFutureSeconds(), Atlas::Objects::Operation::RootOperationData::sendSeconds(), Atlas::Objects::RootData::sendStamp(), and Atlas::Objects::Entity::RootEntityData::sendStampContains().
|
pure virtual |
Adds an integer to the currently streamed map.
Implemented in Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::Message::DecoderBase, Atlas::PresentationBridge, Atlas::Net::LoopBridge, Atlas::Codecs::Bach, and Atlas::Formatter.
Referenced by Atlas::EncoderBase::EncoderBase(), Atlas::Net::LoopBridge::mapIntItem(), Atlas::Objects::Operation::RootOperationData::sendRefno(), and Atlas::Objects::Operation::RootOperationData::sendSerialno().
|
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::EncoderBase::EncoderBase(), Atlas::Net::LoopBridge::mapListItem(), Atlas::Objects::Operation::RootOperationData::sendArgs(), Atlas::Objects::Entity::AccountData::sendCharacters(), Atlas::Objects::Entity::RootEntityData::sendContains(), Atlas::Objects::Entity::RootEntityData::sendPos(), and Atlas::Objects::Entity::RootEntityData::sendVelocity().
|
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::EncoderBase::EncoderBase(), and Atlas::Net::LoopBridge::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::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::Net::LoopBridge, Atlas::PresentationBridge, Atlas::Codecs::Bach, and Atlas::Formatter.
Referenced by Atlas::EncoderBase::EncoderBase(), Atlas::Net::LoopBridge::mapStringItem(), Atlas::Objects::Operation::RootOperationData::sendFrom(), Atlas::Objects::RootData::sendId(), Atlas::Objects::Entity::RootEntityData::sendLoc(), Atlas::Objects::RootData::sendName(), Atlas::Objects::RootData::sendObjtype(), Atlas::Objects::RootData::sendParent(), Atlas::Objects::Entity::AccountData::sendPassword(), Atlas::Objects::Operation::RootOperationData::sendTo(), and Atlas::Objects::Entity::AccountData::sendUsername().
|
pure virtual |
Begin an Atlas stream.
Implemented in Atlas::Message::DecoderBase, Atlas::Codecs::Packed, Atlas::Codecs::XML, Atlas::PresentationBridge, Atlas::Codecs::Bach, Atlas::Formatter, DebugBridge, DebugBridge, and Atlas::Net::LoopBridge.
Referenced by Atlas::EncoderBase::EncoderBase(), and Atlas::Net::LoopBridge::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, DebugBridge, Atlas::Net::LoopBridge, and DebugBridge.
Referenced by Atlas::EncoderBase::EncoderBase(), and Atlas::Net::LoopBridge::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, DebugBridge, Atlas::Net::LoopBridge, and DebugBridge.
Referenced by Atlas::EncoderBase::EncoderBase(), Atlas::Net::LoopBridge::streamMessage(), and Atlas::Objects::ObjectsEncoder::streamObjectsMessage().