About
A component (interface implementation) can be added to a registry. The component is typically registered along its implementation (see Interface Implementation).
Registration
A given component can be registered at a registry using the MAXON_COMPONENT_CLASS_REGISTER macro. It is used to add the component to the registry and to define its ID:
{
public:
{
return "Red"_s;
}
{
return color;
}
};
Definition: objectbase.h:2655
Definition: string.h:1237
#define MAXON_COMPONENT(KIND,...)
Definition: objectbase.h:2212
#define MAXON_COMPONENT_CLASS_REGISTER(C,...)
Definition: objectbase.h:2410
#define MAXON_METHOD
Definition: interfacebase.h:1012
The maxon namespace contains all declarations of the MAXON API.
Definition: autoweight.h:14
A color consisting of three components R, G and B.
Definition: col.h:16
Further Reading