VISR  0.11.1
Versatile Interactive Scene Renderer
visr::ParameterToId< Parameter > Struct Template Reference

#include <parameter_type.hpp>

Detailed Description

template<typename Parameter>
struct visr::ParameterToId< Parameter >

Type trait to translate a type to its corresponding ID and the config type. Specializations must provide an unnamed enum that contains an enumerator 'id' initialised to the type id. In addition, it must define a type alias "Type" to the config type of this parameter type. (using ConfigType = XXX)

Note
the enum trick is to avoid undefined references.
See also
macro DEFINE_PARAMETER_TYPE

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