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:2641
Definition: string.h:1235
#define MAXON_COMPONENT(KIND,...)
Definition: objectbase.h:2199
#define MAXON_COMPONENT_CLASS_REGISTER(C,...)
Definition: objectbase.h:2397
#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