7 #ifndef ATLAS_CODECS_XML_H 8 #define ATLAS_CODECS_XML_H 10 #include <Atlas/Codec.h> 15 namespace Atlas {
namespace Codecs {
45 virtual void poll(
bool can_read =
true);
51 virtual void mapMapItem(
const std::string& name);
53 virtual void mapIntItem(
const std::string& name,
long);
54 virtual void mapFloatItem(
const std::string& name,
double);
55 virtual void mapStringItem(
const std::string& name,
const std::string&);
70 static std::string
escape(
const std::string&);
77 static std::string
unescape(
const std::string&);
81 std::iostream & m_socket;
105 std::stack<State> m_state;
106 std::stack<std::string> m_data;
111 inline void tokenTag(
char);
112 inline void tokenStartTag(
char);
113 inline void tokenEndTag(
char);
114 inline void tokenData(
char);
116 inline void parseStartTag();
117 inline void parseEndTag();
123 #endif // ATLAS_CODECS_XML_H virtual void streamBegin()
Begin an Atlas stream.
virtual void listMapItem()
Starts a map object in the currently streamed list.
Atlas stream bridge.
Definition: Bridge.h:35
virtual void mapListItem(const std::string &name)
Starts a list object to the currently streamed map.
virtual void mapFloatItem(const std::string &name, double)
Adds a float to the currently streamed map.
The Atlas namespace.
Definition: Bridge.h:20
virtual void streamMessage()
Start a message in an Atlas stream.
Atlas stream codec.
Definition: Codec.h:27
virtual void listEnd()
Ends the currently streamed list.
static std::string escape(const std::string &)
Escapes a string for HTML.
virtual void listFloatItem(double)
Adds a float to the currently streamed list.
virtual void mapMapItem(const std::string &name)
Starts a map object to the currently streamed map.
virtual void streamEnd()
Ends the Atlas stream.
static std::string unescape(const std::string &)
Un-escapes a previously "escaped" string for HTML.
virtual void mapEnd()
Ends the currently streamed map.
virtual void listListItem()
Starts a list object in the currently streamed list.
virtual void mapIntItem(const std::string &name, long)
Adds an integer to the currently streames map.
virtual void mapStringItem(const std::string &name, const std::string &)
Adds a string to the currently streamed map.
virtual void listIntItem(long)
Adds an integer to the currently streames list.
virtual void listStringItem(const std::string &)
Adds a string to the currently streamed list.