VISR  0.12.0
Versatile Interactive Scene Renderer
visr::ParameterFactory Class Reference

#include <parameter_factory.hpp>

Classes

class  Registrar
 

Static Public Member Functions

static std::unique_ptr< ParameterBasecreate (ParameterType const &type, ParameterConfigBase const &config)
 
static std::size_t numberOfParameterTypes () noexcept
 
static bool typeExists (ParameterType type) noexcept
 
template<class ConcreteParameterType >
static void registerParameterType (ParameterType const &type)
 
template<class TypedParameterType >
static void registerParameterType ()
 

Member Function Documentation

◆ create()

std::unique_ptr< ParameterBase > visr::ParameterFactory::create ( ParameterType const &  type,
ParameterConfigBase const &  config 
)
static

◆ numberOfParameterTypes()

std::size_t visr::ParameterFactory::numberOfParameterTypes ( )
staticnoexcept

Return the number of registered parameter types.

◆ registerParameterType() [1/2]

template<class ConcreteParameterType >
void visr::ParameterFactory::registerParameterType ( ParameterType const &  type)
static

◆ registerParameterType() [2/2]

template<class TypedParameterType >
void visr::ParameterFactory::registerParameterType ( )
static

Special registration function for ParameterType subtypes that inherit from TypedParameterBase.

◆ typeExists()

bool visr::ParameterFactory::typeExists ( ParameterType  type)
staticnoexcept

Query if a parameter type with the given id is registered in the factory

Returns
True if the parameter type is registered, false otherwise.

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