InstantIO::BasicEncoder Class Reference

Abstract base class of all Encoder templates. More...

#include <InstantIO/BasicEncoder.h>

Inheritance diagram for InstantIO::BasicEncoder:
InstantIO::Encoder< T >

List of all members.

Public Member Functions

virtual ~BasicEncoder ()
 Destroys the BasicEncoder object.
virtual void initialize (const std::string &label, const std::string &description)
 Initializes the encoder object.
const std::string & getLabel () const
 Returns the label of the InSlot we read the values we have to encode from.
virtual BasicInSlotgetInSlot () const =0
 Returns the InSlot we read the values that have to be encoded from.
virtual void popAndEncode (SetStateEvent &event)
 Reads a value from the InSlot, encodes it, and puts the result into an event.

Protected Member Functions

 BasicEncoder ()
 Creates a new BasicEncoder object.
virtual TimeStamp popAndEncode (std::ostream &os)=0
 Reads a value from the InSlot and encodes it into an output stream.

Detailed Description

Abstract base class of all Encoder templates.

Author:
Patrick Dähne

Member Function Documentation

virtual void InstantIO::BasicEncoder::initialize ( const std::string &  label,
const std::string &  description 
) [virtual]

Initializes the encoder object.

Parameters:
label The label of the InSlot
description The description of the InSlot

Reimplemented in InstantIO::Encoder< T >.

const std::string& InstantIO::BasicEncoder::getLabel (  )  const [inline]

Returns the label of the InSlot we read the values we have to encode from.

Returns:
The label of the InSlot
virtual BasicInSlot* InstantIO::BasicEncoder::getInSlot (  )  const [pure virtual]

Returns the InSlot we read the values that have to be encoded from.

Returns:
The InSlot

Implemented in InstantIO::Encoder< T >.

virtual void InstantIO::BasicEncoder::popAndEncode ( SetStateEvent &  event  )  [virtual]

Reads a value from the InSlot, encodes it, and puts the result into an event.

Parameters:
event The event we put the result into.
virtual TimeStamp InstantIO::BasicEncoder::popAndEncode ( std::ostream &  os  )  [protected, pure virtual]

Reads a value from the InSlot and encodes it into an output stream.

Parameters:
os The stream we put the result into.
Returns:
The time stamp of the data value

Implemented in InstantIO::Encoder< T >.


The documentation for this class was generated from the following file:
Generated on Thu Jul 31 17:17:32 2014 by  doxygen 1.6.3