Atlas
0.7.0
Networking protocol for the Worldforge system.
|
Public Member Functions | |
Packed (std::istream &in, std::ostream &out, Atlas::Bridge &b) | |
void | poll () override |
void | streamBegin () override |
void | streamMessage () override |
void | streamEnd () override |
void | mapMapItem (std::string name) override |
void | mapListItem (std::string name) override |
void | mapIntItem (std::string name, std::int64_t) override |
void | mapFloatItem (std::string name, double) override |
void | mapStringItem (std::string name, std::string) override |
void | mapNoneItem (std::string name) override |
void | mapEnd () override |
void | listMapItem () override |
void | listListItem () override |
void | listIntItem (std::int64_t) override |
void | listFloatItem (double) override |
void | listStringItem (std::string) override |
void | listNoneItem () override |
void | listEnd () override |
Protected Types | |
enum | State { PARSE_NOTHING , PARSE_STREAM , PARSE_MAP , PARSE_LIST , PARSE_MAP_BEGIN , PARSE_LIST_BEGIN , PARSE_INT , PARSE_FLOAT , PARSE_STRING , PARSE_NAME } |
Protected Attributes | |
std::istream & | m_istream |
std::ostream & | m_ostream |
Bridge & | m_bridge |
std::stack< State > | m_state |
std::string | m_name |
std::string | m_data |
std::string | m_encoded |
std::string | m_decoded |
|
overridevirtual |
Ends the currently streamed list.
Implements Atlas::Bridge.
Definition at line 415 of file Packed.cpp.
|
overridevirtual |
Adds a float to the currently streamed list.
Implements Atlas::Bridge.
Definition at line 402 of file Packed.cpp.
|
overridevirtual |
Adds an integer to the currently streamed list.
Implements Atlas::Bridge.
Definition at line 398 of file Packed.cpp.
|
overridevirtual |
Starts a list object in the currently streamed list.
Implements Atlas::Bridge.
Definition at line 394 of file Packed.cpp.
|
overridevirtual |
Starts a map object in the currently streamed list.
Implements Atlas::Bridge.
Definition at line 390 of file Packed.cpp.
|
overridevirtual |
Adds an empty item to the currently streamed list.
Implements Atlas::Bridge.
Definition at line 410 of file Packed.cpp.
|
overridevirtual |
Adds a string to the currently streamed list.
Implements Atlas::Bridge.
Definition at line 406 of file Packed.cpp.
|
overridevirtual |
Ends the currently streamed map.
Implements Atlas::Bridge.
Definition at line 386 of file Packed.cpp.
|
overridevirtual |
Adds a float to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 374 of file Packed.cpp.
|
overridevirtual |
Adds an integer to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 370 of file Packed.cpp.
|
overridevirtual |
Starts a list object to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 366 of file Packed.cpp.
|
overridevirtual |
Starts a map object to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 362 of file Packed.cpp.
|
overridevirtual |
Adds a none item to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 382 of file Packed.cpp.
|
overridevirtual |
Adds a string to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 378 of file Packed.cpp.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Start a message in an Atlas stream.
Implements Atlas::Bridge.
Definition at line 354 of file Packed.cpp.
|
protected |
|
protected |