Encoding interface, used as a proxy to convert T to Char* Used to cast A to B or B to A.
More...
#include <Config.h>
|
| | ICodec ()=default |
| virtual | ~ICodec ()=default |
| ICodec & | operator= (const ICodec &)=default |
| | ICodec (const ICodec &)=default |
| template<typename T> |
| const Char * | AsBytes (T type) |
| | Convert type to bytes.
|
| template<typename OutputClass, typename FactoryClass> |
| OutputClass * | Construct (Char *type) |
| | Construct from type to class.
|
| template<typename T, typename Y> |
| Y | As (T type) |
| | Convert T to a Y type.
|
Encoding interface, used as a proxy to convert T to Char* Used to cast A to B or B to A.
◆ ICodec() [1/2]
| Kernel::ICodec::ICodec |
( |
| ) |
|
|
explicitdefault |
◆ ~ICodec()
| virtual Kernel::ICodec::~ICodec |
( |
| ) |
|
|
virtualdefault |
◆ ICodec() [2/2]
| Kernel::ICodec::ICodec |
( |
const ICodec & | | ) |
|
|
default |
◆ As()
template<typename T, typename Y>
| Y Kernel::ICodec::As |
( |
T | type | ) |
|
|
inline |
Convert T to a Y type.
- Note
- The class must be serializable, otherwise this will fail.
- Template Parameters
-
| T | the class type of type. |
| Y | the result class. |
- Parameters
-
- Returns
- the class as Y.
◆ AsBytes()
template<typename T>
| const Char * Kernel::ICodec::AsBytes |
( |
T | type | ) |
|
|
inline |
Convert type to bytes.
- Template Parameters
-
- Parameters
-
- Returns
- a1 as Char*
◆ Construct()
template<typename OutputClass, typename FactoryClass>
| OutputClass * Kernel::ICodec::Construct |
( |
Char * | type | ) |
|
|
inline |
Construct from type to class.
- Template Parameters
-
- Parameters
-
- Returns
- a1 as Char*
◆ operator=()
The documentation for this class was generated from the following file: