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