InstantIO::BasicCodec Class Reference
Abstract base class of all Codec templates.
More...
#include <InstantIO/BasicCodec.h>
List of all members.
Detailed Description
Abstract base class of all Codec templates.
- Author:
- Patrick Dähne
Constructor & Destructor Documentation
InstantIO::BasicCodec::BasicCodec |
( |
const std::string & |
label, |
|
|
CreateEncoderMethod |
createEncoderMethod, |
|
|
CreateDecoderMethod |
createDecoderMethod, |
|
|
const std::string & |
author = std::string() | |
|
) |
| | [protected] |
Creates a new BasicCodec object.
- Parameters:
-
| label | The label of the Codec. This label is used to identify the Codec. Case does not matter. |
| createEncoderMethod | The method used to create new Encoders. |
| createDecoderMethod | The method used to create new Decoders. |
| author | The name of the person who wrote the codec. This information is not used by the InstantIO system in any way, it simply serves documentation purposes. |
Member Function Documentation
const std::string& InstantIO::BasicCodec::getLabel |
( |
|
) |
const [inline] |
Returns the label of the Codec.
This label is used to identify the Codec.
- Returns:
- The label of the Codec.
const std::string& InstantIO::BasicCodec::getAuthor |
( |
|
) |
const [inline] |
Returns the name of the person who wrote the Codec.
This information is not used by the InstantIO system in any way, it simply serves documentation purposes.
- Returns:
- The name.
virtual const char* InstantIO::BasicCodec::getTypeName |
( |
|
) |
const [pure virtual] |
Returns a human-readable string that describes the type that can be encoded and decoded by this Codec.
- Returns:
- A string that describes the type that can be encoded or decoded by this Codec.
Implemented in InstantIO::Codec< T >.
BasicEncoder* InstantIO::BasicCodec::createEncoder |
( |
|
) |
const [inline] |
BasicDecoder* InstantIO::BasicCodec::createDecoder |
( |
|
) |
const [inline] |
static BasicCodec* InstantIO::BasicCodec::findCodec |
( |
const std::string & |
label |
) |
[static] |
Returns the Codec that matches a given label.
- Parameters:
-
| label | The label of the Codec. Case does not matter. |
- Returns:
- The Codec that matches the label or null when no such Codec exists.
Returns the Codec whose type matches the type of a given OutSlot.
- Parameters:
-
- Returns:
- The Codec whose type matches the type of the OutSlot or null when no such Codec exists.
Returns the Codec whose type matches the type of a given InSlot.
- Parameters:
-
- Returns:
- The Codec whose type matches the type of the InSlot or null when no such Codec exists.
virtual bool InstantIO::BasicCodec::sameType |
( |
const BasicOutSlot & |
outSlot |
) |
const [pure virtual] |
virtual bool InstantIO::BasicCodec::sameType |
( |
const BasicInSlot & |
inSlot |
) |
const [pure virtual] |
static CodecMap* InstantIO::BasicCodec::getCodecs |
( |
|
) |
[inline, static] |
Returns the map of all Codecs currently available.
- Returns:
- The map of all Codecs
The documentation for this class was generated from the following file: