template<typename T, typename U = RegistryTraits<T>>
class Rose::Registry< T, U >::listener
Abstract base class for registry listeners, which are informed when new entries are added to the registry.
Simply subclass and instantiate:
class CollectorPrinter :
public Registry<Collector>::listener {
protected:
void registered(const Registry<Collector>::entry &e) {
cerr << "collector now available: " << e->getName() << "\n";
}
public:
CollectorPrinter() { init(); }
};
CollectorPrinter Printer;
A global registry used in conjunction with static constructors to make pluggable components (like tar...
Definition at line 248 of file plugin.h.