Atlas-C++
Public Member Functions | Protected Member Functions | List of all members
Atlas::Message::QueuedDecoder Class Reference

Decoder that presents a queue of Atlas::Message::Element. More...

#include <QueuedDecoder.h>

Inheritance diagram for Atlas::Message::QueuedDecoder:
Atlas::Message::DecoderBase Atlas::Bridge

Public Member Functions

size_t queueSize ()
 Retrieve the current size of the message queue.
 
MapType popMessage ()
 Pop an object from the front of the message queue.
 
const MapType & frontMessage ()
 Peek at the object at the front of the queue.
 
- Public Member Functions inherited from Atlas::Message::DecoderBase
void streamBegin () override
 Begin an Atlas stream.
 
void streamMessage () override
 Start a message in an Atlas stream.
 
void streamEnd () override
 Ends the Atlas stream.
 
void mapMapItem (std::string name) override
 Starts a map object to the currently streamed map.
 
void mapListItem (std::string name) override
 Starts a list object to the currently streamed map.
 
void mapIntItem (std::string name, long) override
 Adds an integer to the currently streames map.
 
void mapFloatItem (std::string name, double) override
 Adds a float to the currently streamed map.
 
void mapStringItem (std::string name, std::string) override
 Adds a string to the currently streamed map.
 
void mapEnd () override
 Ends the currently streamed map.
 
void listMapItem () override
 Starts a map object in the currently streamed list.
 
void listListItem () override
 Starts a list object in the currently streamed list.
 
void listIntItem (long) override
 Adds an integer to the currently streames list.
 
void listFloatItem (double) override
 Adds a float to the currently streamed list.
 
void listStringItem (std::string) override
 Adds a string to the currently streamed list.
 
void listEnd () override
 Ends the currently streamed list.
 

Protected Member Functions

void messageArrived (MapType obj) override
 This adds a message to the queue.
 

Additional Inherited Members

- Protected Types inherited from Atlas::Message::DecoderBase
enum  State { STATE_STREAM, STATE_MAP, STATE_LIST }
 Our current decoding state.
 
- Protected Attributes inherited from Atlas::Message::DecoderBase
std::stack< Statem_state
 The state stack.
 
std::stack< MapType > m_maps
 The map stack.
 
std::stack< ListType > m_lists
 The list stack.
 
std::stack< std::string > m_names
 Names for maps and lists.
 

Detailed Description

Decoder that presents a queue of Atlas::Message::Element.

This message decoder puts arrived objects into a queue and allows the application to pop them off the front of the queue, peek at the front of the queue, as well as checking to see how many objects are currently in the queue.

See also
DecoderBase
Element
Author
Stefanus Du Toit sdt@g.nosp@m.mx.n.nosp@m.et

The documentation for this class was generated from the following file:

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.