Atlas-C++
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Atlas::Objects::ObjectsDecoder Class Referenceabstract

Objects hierarchy decoder. More...

#include <Decoder.h>

Inheritance diagram for Atlas::Objects::ObjectsDecoder:
Atlas::Message::DecoderBase Atlas::Bridge Atlas::Objects::Dispatcher

Public Member Functions

 ObjectsDecoder (Factories *f=0)
 Constructor.
 
virtual ~ObjectsDecoder ()
 Default destructor.
 
Factoriesfactories () const
 Factories accessor.
 
- Public Member Functions inherited from Atlas::Message::DecoderBase
virtual void streamBegin ()
 Begin an Atlas stream.
 
virtual void streamMessage ()
 Start a message in an Atlas stream.
 
virtual void streamEnd ()
 Ends the Atlas stream.
 
virtual void mapMapItem (const std::string &name)
 Starts a map object to the currently streamed map.
 
virtual void mapListItem (const std::string &name)
 Starts a list object to the currently streamed map.
 
virtual void mapIntItem (const std::string &name, long)
 Adds an integer to the currently streames map.
 
virtual void mapFloatItem (const std::string &name, double)
 Adds a float to the currently streamed map.
 
virtual void mapStringItem (const std::string &name, const std::string &)
 Adds a string to the currently streamed map.
 
virtual void mapEnd ()
 Ends the currently streamed map.
 
virtual void listMapItem ()
 Starts a map object in the currently streamed list.
 
virtual void listListItem ()
 Starts a list object in the currently streamed list.
 
virtual void listIntItem (long)
 Adds an integer to the currently streames list.
 
virtual void listFloatItem (double)
 Adds a float to the currently streamed list.
 
virtual void listStringItem (const std::string &)
 Adds a string to the currently streamed list.
 
virtual void listEnd ()
 Ends the currently streamed list.
 

Protected Member Functions

virtual void messageArrived (const Atlas::Message::MapType &)
 Overridden by to retrieve the message from DecoderBase.
 
virtual void objectArrived (const Root &obj)=0
 call right object*Arrived method
 

Protected Attributes

Factoriesm_factories
 
- 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.
 

Additional Inherited Members

- Protected Types inherited from Atlas::Message::DecoderBase
enum  State { STATE_STREAM, STATE_MAP, STATE_LIST }
 Our current decoding state.
 

Detailed Description

Objects hierarchy decoder.

This decoder can be bound to a codec, will assemble incoming messages, check their type, convert them into the appropriate instance in the Objects hierarchy and call the relevant member functions, which subclasses can conveniently override to pick up the object.

See also
Atlas::Objects::Encoder
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.