Rerun C++ SDK
Loading...
Searching...
No Matches
rerun::ComponentType Struct Reference

A type of component that can be registered. More...

#include <rerun/component_type.hpp>

Public Member Functions

 ComponentType (const ComponentDescriptor &descriptor_, const std::shared_ptr< arrow::DataType > &arrow_datatype_)
 
Result< ComponentTypeHandleregister_component () const
 Registers a component type with the SDK.
 

Public Attributes

ComponentDescriptor descriptor
 
const std::shared_ptr< arrow::DataType > & arrow_datatype
 

Detailed Description

A type of component that can be registered.

All built-in components automatically register their types lazily upon first serialization.

Member Function Documentation

◆ register_component()

Result< ComponentTypeHandle > rerun::ComponentType::register_component ( ) const

Registers a component type with the SDK.

There is currently no deregistration mechanism. Ideally, this method is only ever called once per component type.


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