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;
56 virtual void mapStringItem(
const std::string& name,
const std::string&);
Base class for decoders that take Atlas::Message::Object.
Definition: DecoderBase.h:41
virtual void mapStringItem(const std::string &name, const std::string &)
Adds a string to the currently streamed map.
Atlas stream bridge.
Definition: Bridge.h:36
virtual void streamMessage()
Start a message in an Atlas stream.
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 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 listFloatItem(double)
Adds a float to the currently streamed list.
virtual void messageArrived(const MapType &obj)=0
Override this - called when an object was received.
std::stack< State > m_state
The state stack.
Definition: DecoderBase.h:76
virtual void mapMapItem(const std::string &name)
Starts a map object to the currently streamed map.
virtual void mapEnd()
Ends the currently streamed map.
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
virtual void listListItem()
Starts a list object in the currently streamed list.
virtual void streamEnd()
Ends the 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 mapIntItem(const std::string &name, long)
Adds an integer to the currently streames map.
virtual void streamBegin()
Begin an Atlas stream.
virtual void listIntItem(long)
Adds an integer to the currently streames list.
State
Our current decoding state.
Definition: DecoderBase.h:69
virtual void listMapItem()
Starts a map object in the currently streamed list.
Copyright 2000-2004 the respective authors.
This document can be licensed under the terms of the GNU Free Documentation
License or the GNU General Public License and may be freely distributed under
the terms given by one of these licenses.