Atlas-C++
Public Member Functions | List of all members
Atlas::Objects::ObjectsEncoder Class Reference

Objects hierarchy encoder. More...

#include <Encoder.h>

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

Public Member Functions

 ObjectsEncoder (Atlas::Bridge &b)
 The default constructor. More...
 
 ~ObjectsEncoder ()
 The default destructor.
 
template<class ObjectData >
void streamObjectsMessage (const Atlas::Objects::SmartPtr< ObjectData > &o)
 Send an object to the bridge. More...
 
- Public Member Functions inherited from Atlas::EncoderBase
 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 ()
 

Additional Inherited Members

- Protected Attributes inherited from Atlas::EncoderBase
Atlas::Bridgem_b
 The bridge that requests are forwarded to.
 

Detailed Description

Objects hierarchy encoder.

This Encoder can be used to send objects in the Atlas::Objects hierarchy to a certain Bridge (e.g. a codec).

Simply call the streamMessage member with a pointer to the object to be sent.

See also
Atlas::Objects::Decoder
Author
Stefanus Du Toit sdt@g.nosp@m.mx.n.nosp@m.et

Constructor & Destructor Documentation

◆ ObjectsEncoder()

Atlas::Objects::ObjectsEncoder::ObjectsEncoder ( Atlas::Bridge b)
inlineexplicit

The default constructor.

Parameters
bThe Bridge to which objects are to be sent.

Member Function Documentation

◆ streamObjectsMessage()

template<class ObjectData >
void Atlas::Objects::ObjectsEncoder::streamObjectsMessage ( const Atlas::Objects::SmartPtr< ObjectData > &  o)
inline

Send an object to the bridge.

Parameters
oThe object that is to be sent.

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.