Atlas  0.7.0
Networking protocol for the Worldforge system.
Atlas::Message::Encoder Class Reference

#include <MEncoder.h>

Inheritance diagram for Atlas::Message::Encoder:
Collaboration diagram for Atlas::Message::Encoder:

Public Member Functions

 Encoder (Atlas::Bridge &)
 
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::Bridgem_b
 The bridge that requests are forwarded to. More...
 

Detailed Description

Encoder that transmits Atlas::Message::Element.

This encoder can be used to send Atlas::Message::Element objects representing full atlas messages.

See also
Element
Atlas::Bridge
Atlas::EncoderBase
Author
Stefanus Du Toit sdt@g.nosp@m.mx.n.nosp@m.et

Definition at line 33 of file MEncoder.h.

Member Function Documentation

◆ listElementItem()

void Atlas::Message::Encoder::listElementItem ( const Element obj)

Send an object as a list item.

Definition at line 19 of file MEncoder.cpp.

◆ mapElementItem()

void Atlas::Message::Encoder::mapElementItem ( const std::string &  name,
const Element obj 
)

Send an object as a map item.

Definition at line 66 of file MEncoder.cpp.

◆ streamMessageElement()

void Atlas::Message::Encoder::streamMessageElement ( const MapType &  obj)

Send a message (must be a map!) in stream state.

Definition at line 114 of file MEncoder.cpp.

Member Data Documentation

◆ m_b

Atlas::Bridge& Atlas::EncoderBase::m_b
protectedinherited

The bridge that requests are forwarded to.

Definition at line 64 of file EncoderBase.h.

Referenced by Atlas::Objects::ObjectsEncoder::streamObjectsMessage().


The documentation for this class was generated from the following files: