Zserio C++ runtime library
1.0.0
Built for Zserio 2.13.0
|
#include <TypeInfo.h>
Public Types | |
using | CreateInstanceFunc = typename CompoundTypeInfoBase< ALLOC >::CreateInstanceFunc |
![]() | |
using | CreateInstanceFunc = IBasicReflectablePtr< ALLOC >(*)(const ALLOC &) |
Type information class for choice types.
Definition at line 576 of file TypeInfo.h.
using zserio::ChoiceTypeInfo< ALLOC >::CreateInstanceFunc = typename CompoundTypeInfoBase<ALLOC>::CreateInstanceFunc |
Definition at line 579 of file TypeInfo.h.
zserio::ChoiceTypeInfo< ALLOC >::ChoiceTypeInfo | ( | StringView | schemaName, |
CreateInstanceFunc | createInstanceFunc, | ||
StringView | templateName, | ||
Span< const BasicTemplateArgumentInfo< ALLOC >> | templateArguments, | ||
Span< const BasicFieldInfo< ALLOC >> | fields, | ||
Span< const BasicParameterInfo< ALLOC >> | parameters, | ||
Span< const BasicFunctionInfo< ALLOC >> | functions, | ||
StringView | selector, | ||
Span< const BasicCaseInfo< ALLOC >> | cases | ||
) |
Constructor.
schemaName | The schema name to be stored in type information. |
templateName | The full schema template name. |
templateArguments | The sequence of type informations for template arguments. |
fields | The sequence of type informations for fields. |
parameters | The sequence of type informations for parameters. |
functions | The sequence of type informations for functions. |
selector | The selector expression. |
cases | The sequence of type informations for cases. |
Definition at line 1642 of file TypeInfo.h.
|
overridevirtual |
Gets the type information for choice type cases.
CppRuntimeException | If the zserio type is not choice type. |
Reimplemented from zserio::TypeInfoBase< ALLOC >.
Definition at line 1659 of file TypeInfo.h.
|
overridevirtual |
Gets the selector for choice type.
CppRuntimeException | If the zserio type is not choice type. |
Reimplemented from zserio::TypeInfoBase< ALLOC >.
Definition at line 1653 of file TypeInfo.h.