7 #ifndef ATLAS_MESSAGE_DECODERBASE_H
8 #define ATLAS_MESSAGE_DECODERBASE_H
10 #include <Atlas/Bridge.h>
17 namespace Atlas {
namespace Message {
21 typedef std::map<std::string, Element> MapType;
22 typedef std::vector<Element> ListType;
52 virtual void mapMapItem(
const std::string& name);
54 virtual void mapIntItem(
const std::string& name,
long);
55 virtual void mapFloatItem(
const std::string& name,
double);
56 virtual void mapStringItem(
const std::string& name,
const std::string&);
std::stack< std::string > m_names
Names for maps and lists.
Definition: DecoderBase.h:82
std::stack< ListType > m_lists
The list stack.
Definition: DecoderBase.h:80
Atlas stream bridge.
Definition: Bridge.h:35
virtual void messageArrived(const MapType &obj)=0
Override this - called when an object was received.
State
Our current decoding state.
Definition: DecoderBase.h:69
virtual void streamMessage()
Start a message in an Atlas stream.
virtual void mapListItem(const std::string &name)
Starts a list object to the currently streamed map.
The Atlas namespace.
Definition: Bridge.h:20
virtual void listStringItem(const std::string &)
Adds a string to the currently streamed list.
std::stack< MapType > m_maps
The map stack.
Definition: DecoderBase.h:78
virtual void listMapItem()
Starts a map object in the currently streamed list.
virtual void mapEnd()
Ends the currently streamed map.
virtual void listFloatItem(double)
Adds a float to the currently streamed list.
virtual void mapIntItem(const std::string &name, long)
Adds an integer to the currently streames map.
std::stack< State > m_state
The state stack.
Definition: DecoderBase.h:76
virtual void listListItem()
Starts a list object in the currently streamed list.
virtual void mapFloatItem(const std::string &name, double)
Adds a float to the currently streamed map.
virtual void listEnd()
Ends the currently streamed list.
virtual void streamBegin()
Begin an Atlas stream.
virtual void mapMapItem(const std::string &name)
Starts a map object to the currently streamed map.
virtual void listIntItem(long)
Adds an integer to the currently streames list.
Base class for decoders that take Atlas::Message::Object.
Definition: DecoderBase.h:40
virtual void mapStringItem(const std::string &name, const std::string &)
Adds a string to the currently streamed map.
virtual void streamEnd()
Ends the Atlas stream.