|
CX Framework
Cross-platform C utility framework
|
#include <stype.h>
Data Fields | |
| stype | type |
| The stype this extends; always a valid, canonical stype. | |
| uint32 | flags |
See STypeInfoExtFlagsEnum. | |
| strref | name |
| const void * | detail |
| const STypeInfoExt * | param [2] |
| Element type, or key type + value type. | |
Structural, declaration-level information about a type, layered on top of an stype. See the stype_ext group overview for how this differs from STypeInfo.
cxautogen generates one of these for every serializable struct member, and a canonical STypeInfoExt – reached through the stExt(name) macro – for every serializable struct, class, structset, or classset. Built-in types have one too, e.g. stExt(int32). Pass the matching descriptor alongside a value so a consumer such as the serializer can agree on what it is – including element types for arrays and hashtables, and the concrete type for a value that could be one of several (see STIE_TypeSet).
| const void* STypeInfoExt::detail |
| strref STypeInfoExt::name |