About
A registry is used to share implementations of a certain interface. The declaration of the registry is typically found in the same header file that defines the interface.
Declaration
The declaration of a registry is placed between the two .hxx files generated for the given header file. The registry is defined using the MAXON_REGISTRY attribute. It defines:
- The type of the exposed object. This is typically a maxon::Class referencing the interface using the reference class.
- The class name of the registry. A static class with that name is used to access the registry.
- The ID of the registry.
{
public:
};
#include "example_registry1.hxx"
#include "example_registry2.hxx"
Further Reading