Atlas_Codecs_XML man page

Atlas::Codecs::XML —

Synopsis

Inherits Atlas::Codec.

Public Member Functions

XML (std::iostream &s, Atlas::Bridge &b)

virtual void poll (bool can_read=true)

virtual void streamBegin ()
Begin an Atlas stream.
virtual void streamMessage ()
Start a message in an Atlas stream.
virtual void streamEnd ()
Ends the Atlas stream.
virtual void mapMapItem (const std::string &name)
Starts a map object to the currently streamed map.
virtual void mapListItem (const std::string &name)
Starts a list object to the currently streamed map.
virtual void mapIntItem (const std::string &name, long)
Adds an integer to the currently streames map.
virtual void mapFloatItem (const std::string &name, double)
Adds a float to the currently streamed map.
virtual void mapStringItem (const std::string &name, const std::string &)
Adds a string to the currently streamed map.
virtual void mapEnd ()
Ends the currently streamed map.
virtual void listMapItem ()
Starts a map object in the currently streamed list.
virtual void listListItem ()
Starts a list object in the currently streamed list.
virtual void listIntItem (long)
Adds an integer to the currently streames list.
virtual void listFloatItem (double)
Adds a float to the currently streamed list.
virtual void listStringItem (const std::string &)
Adds a string to the currently streamed list.
virtual void listEnd ()
Ends the currently streamed list.

Static Public Member Functions

static std::string escape (const std::string &)
Escapes a string for HTML.
static std::string unescape (const std::string &)
Un-escapes a previously 'escaped' string for HTML.

Protected Types

enum Token { TOKEN_TAG, TOKEN_START_TAG, TOKEN_END_TAG, TOKEN_DATA }

enum State { PARSE_NOTHING, PARSE_STREAM, PARSE_MAP, PARSE_LIST, PARSE_INT, PARSE_FLOAT, PARSE_STRING }

Protected Member Functions

void tokenTag (char)

void tokenStartTag (char)

void tokenEndTag (char)

void tokenData (char)

void parseStartTag ()

void parseEndTag ()

Protected Attributes

std::iostream & m_socket

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

Member Function Documentation

static std::string Atlas::Codecs::XML::escape (const std::string &) [static]

Escapes a string for HTML.

Parameters:

The original string.

Returns:

An escaped string.

static std::string Atlas::Codecs::XML::unescape (const std::string &) [static]

Un-escapes a previously 'escaped' string for HTML.

Parameters:

The original string.

Returns:

An unescaped string.

Author

Generated automatically by Doxygen for Atlas-C++ from the source code.

Info

Wed Feb 3 2016 Atlas-C++