#include <rutz/factory.h>
Public Member Functions | |
typedef void() | fallback_t (const rutz::fstring &) |
factory_base () throw () | |
Default constructor sets the fallback to null. | |
virtual | ~factory_base () throw () |
Virtual no-throw destructor for proper inheritance. | |
void | set_fallback (rutz::shared_ptr< factory_fallback > f) |
Change the fallback object. | |
void | set_fallback (fallback_t *fptr) |
Change the fallback function. | |
void | try_fallback (const rutz::fstring &key) const |
Try running the fallback function for the given key. |
Definition at line 115 of file factory.h.