Skip to content

RuleBasedTransactionFactory

RuleBasedTransactionFactory ⚓︎

RuleBasedTransactionFactory

Rule based transaction factory.

__init__(module, type_converter=None, type_rule_overrides=None) ⚓︎

RuleBasedTransactionFactory.__init__

Creates a rule based transaction factory for use with catbuffer generated code.

add_array_parser(name) ⚓︎

RuleBasedTransactionFactory.add_array_parser

Creates array type parser, based on some existing element type parser.

add_enum_parser(name) ⚓︎

add_flags_parser(name) ⚓︎

add_pod_parser(name, pod_class) ⚓︎

RuleBasedTransactionFactory.add_pod_parser

Creates wrapper for SDK POD types.

add_struct_parser(name) ⚓︎

RuleBasedTransactionFactory.add_struct_parser

Creates struct parser (to allow nested parsing).

autodetect() ⚓︎

RuleBasedTransactionFactory.autodetect

Autodetects rules using reflection.

create_from_factory(factory, descriptor) ⚓︎

RuleBasedTransactionFactory.create_from_factory

Creates an entity from a descriptor using a factory.