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&);
67 std::iostream & m_socket;
91 std::stack<State> m_state;
92 std::stack<std::string> m_data;
97 inline void tokenTag(
char);
98 inline void tokenStartTag(
char);
99 inline void tokenEndTag(
char);
100 inline void tokenData(
char);
102 inline void parseStartTag();
103 inline void parseEndTag();
108 #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.
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.
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.