#include <EncoderBase.h>
Inheritance diagram for Atlas::EncoderBase:
Public Member Functions | |
EncoderBase (Atlas::Bridge *b) | |
You will need to implement this in subclasses. | |
virtual void | StreamBegin () |
virtual void | StreamMessage (const Map &m) |
virtual void | StreamEnd () |
virtual void | MapItem (const std::string &name, const Bridge::Map &m) |
virtual void | MapItem (const std::string &name, const Bridge::List &l) |
virtual void | MapItem (const std::string &name, long i) |
virtual void | MapItem (const std::string &name, double d) |
virtual void | MapItem (const std::string &name, const std::string &s) |
virtual void | MapEnd () |
virtual void | ListItem (const Bridge::Map &m) |
virtual void | ListItem (const Bridge::List &l) |
virtual void | ListItem (long i) |
virtual void | ListItem (double d) |
virtual void | ListItem (const std::string &s) |
virtual void | ListEnd () |
Protected Attributes | |
Atlas::Bridge * | b |
The bridge that requests are forwarded to. |
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.
Copyright 2000 the respective authors.
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.