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;
54 void mapIntItem(std::string name,
long)
override;
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
void listListItem() override
Starts a list object in the currently streamed list.
Atlas stream bridge.
Definition: Bridge.h:35
void streamEnd() override
Ends the Atlas stream.
State
Our current decoding state.
Definition: DecoderBase.h:69
void listFloatItem(double) override
Adds a float to the currently streamed list.
void mapIntItem(std::string name, long) override
Adds an integer to the currently streames map.
void listMapItem() override
Starts a map object in the currently streamed list.
The Atlas namespace.
Definition: Bridge.h:20
void mapStringItem(std::string name, std::string) override
Adds a string to the currently streamed map.
void streamBegin() override
Begin an Atlas stream.
std::stack< MapType > m_maps
The map stack.
Definition: DecoderBase.h:78
void mapMapItem(std::string name) override
Starts a map object to the currently streamed map.
void mapEnd() override
Ends the currently streamed map.
void listIntItem(long) override
Adds an integer to the currently streames list.
virtual void messageArrived(MapType obj)=0
Override this - called when an object was received.
std::stack< State > m_state
The state stack.
Definition: DecoderBase.h:76
void streamMessage() override
Start a message in an Atlas stream.
void listStringItem(std::string) override
Adds a string to the currently streamed list.
void mapFloatItem(std::string name, double) override
Adds a float to the currently streamed map.
void listEnd() override
Ends the currently streamed list.
Base class for decoders that take Atlas::Message::Object.
Definition: DecoderBase.h:40
void mapListItem(std::string name) override
Starts a list object to the currently streamed map.