Atlas
0.7.0
Networking protocol for the Worldforge system.
|
Public Member Functions | |
XML (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 |
Static Public Member Functions | |
static std::string | escape (const std::string &) |
static std::string | unescape (const std::string &) |
Protected Member Functions | |
void | tokenTag (char) |
void | tokenStartTag (char) |
void | tokenEndTag (char) |
void | tokenData (char) |
void | parseStartTag () |
void | parseEndTag () |
Protected Attributes | |
std::istream & | m_istream |
std::ostream & | m_ostream |
Bridge & | m_bridge |
Token | m_token |
std::stack< State > | m_state |
std::stack< std::string > | m_data |
std::string | m_tag |
std::string | m_name |
|
static |
Escapes a string for HTML.
The | original string. |
Definition at line 401 of file XML.cpp.
Referenced by listStringItem(), mapFloatItem(), mapIntItem(), mapListItem(), mapMapItem(), mapNoneItem(), and mapStringItem().
|
overridevirtual |
|
overridevirtual |
Adds a float to the currently streamed list.
Implements Atlas::Bridge.
|
overridevirtual |
Adds an integer to the currently streamed list.
Implements Atlas::Bridge.
|
overridevirtual |
Starts a list object in the currently streamed list.
Implements Atlas::Bridge.
|
overridevirtual |
Starts a map object in the currently streamed list.
Implements Atlas::Bridge.
|
overridevirtual |
Adds an empty item to the currently streamed list.
Implements Atlas::Bridge.
|
overridevirtual |
Adds a string to the currently streamed list.
Implements Atlas::Bridge.
Definition at line 389 of file XML.cpp.
References escape().
|
overridevirtual |
|
overridevirtual |
Adds a float to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 357 of file XML.cpp.
References escape().
|
overridevirtual |
Adds an integer to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 353 of file XML.cpp.
References escape().
|
overridevirtual |
Starts a list object to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 349 of file XML.cpp.
References escape().
|
overridevirtual |
Starts a map object to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 345 of file XML.cpp.
References escape().
|
overridevirtual |
Adds a none item to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 365 of file XML.cpp.
References escape().
|
overridevirtual |
Adds a string to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 361 of file XML.cpp.
References escape().
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Start a message in an Atlas stream.
Implements Atlas::Bridge.
|
static |