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

Base class forwarding to Atlas::Bridge as skeleton for other encoders. More...

#include <EncoderBase.h>

Inheritance diagram for Atlas::EncoderBase:
Atlas::Message::Encoder Atlas::Objects::ObjectsEncoder

Public Member Functions

 EncoderBase (Atlas::Bridge &b)
 You will need to implement this in subclasses.
 
void streamBegin ()
 
void streamMessage ()
 
void streamEnd ()
 
void mapMapItem (const std::string &name)
 
void mapListItem (const std::string &name)
 
void mapIntItem (const std::string &name, long i)
 
void mapFloatItem (const std::string &name, double d)
 
void mapStringItem (const std::string &name, const std::string &s)
 
void mapEnd ()
 
void listMapItem ()
 
void listListItem ()
 
void listIntItem (long i)
 
void listFloatItem (double d)
 
void listStringItem (const std::string &s)
 
void listEnd ()
 

Protected Attributes

Atlas::Bridgem_b
 The bridge that requests are forwarded to.
 

Detailed Description

Base class forwarding to Atlas::Bridge as skeleton for other encoders.

This class is useful when building your own encoders that work on top of Bridge (hence taking one as an argument).

It forwards all requests to a protected Bridge b, hence you can inherit from it and your encoder can be used as a Bridge (for instance, as argument to another encoder) without you needing to implement all these forwarding requests.

Of course your encoder does not have to inherit from EncoderBase - you could offer a completely different interface from that of bridge.

See also
Bridge

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.