ImFusion SDK 4.3
DataDisplayHandlerFactory Class Reference

#include <ImFusion/GUI/DataDisplayHandler.h>

Factory class to maintain the list of registered DataDisplayHandlers ,. More...

Detailed Description

Factory class to maintain the list of registered DataDisplayHandlers ,.

Public Types

using HandlerCreationFunc = std::function<std::unique_ptr<DataDisplayHandler>()>
 

Static Public Member Functions

static void registerHandler (const std::string &id, HandlerCreationFunc creator)
 Register a DataDisplayHandler type. The ID is used for duplicate detection and for unregistering.
 
static void unregisterHandler (const std::string &id)
 Unregister a DataDisplayHandler type that was previously registered with the given ID.
 
static std::vector< std::unique_ptr< DataDisplayHandler > > createAllHandlers ()
 Creates one instance of all registered DataDisplayHandler types.
 

Member Function Documentation

◆ createAllHandlers()

static std::vector< std::unique_ptr< DataDisplayHandler > > createAllHandlers ( )
static

Creates one instance of all registered DataDisplayHandler types.

The order of handlers is reversed wrt. their registration order so that handlers that were registered at a later time have precedence over handlers that were registered earlier.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close