Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::timeline::SchemaRegistryBuilder Class Reference

Mutable, single-owner accumulator for constructing a SchemaRegistry. More...

#include <schema_registry.hpp>

Public Member Functions

runtime::Result< SchemaRegistration, SchemaError > register_type (TypeSchema schema)
 Validates and takes ownership of one schema registration.
runtime::Result< SchemaRegistry, SchemaError > build () &&
 Sorts the accumulated registrations and consumes them into a registry.

Detailed Description

Mutable, single-owner accumulator for constructing a SchemaRegistry.

Registering and building are not thread-safe. build() consumes the builder.

Member Function Documentation

◆ build()

runtime::Result< SchemaRegistry, SchemaError > pulp::timeline::SchemaRegistryBuilder::build ( ) &&

Sorts the accumulated registrations and consumes them into a registry.

◆ register_type()

runtime::Result< SchemaRegistration, SchemaError > pulp::timeline::SchemaRegistryBuilder::register_type ( TypeSchema schema)

Validates and takes ownership of one schema registration.

Domain/name pairs and field names must be unique; codecs must be complete; migration edges must be unique, adjacent, and directionally valid.


The documentation for this class was generated from the following file: