
#include <rutz/factory.h>
Collaboration diagram for rutz::factory_base:

Definition at line 115 of file factory.h.
Public Types | |
| typedef void( | fallback_t )(const rutz::fstring &) |
Public Member Functions | |
| 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. | |
|
|
Default constructor sets the fallback to null.
Definition at line 71 of file factory.cc. References GVX_TRACE. |
|
|
Virtual no-throw destructor for proper inheritance.
Definition at line 78 of file factory.cc. References GVX_TRACE. |
|
|
Change the fallback function.
Definition at line 90 of file factory.cc. References GVX_TRACE, and rutz::make_shared(). |
|
|
Change the fallback object.
Definition at line 83 of file factory.cc. References GVX_TRACE. Referenced by rutz::factory< nub::ref< P > >::set_fallback(). |
|
|
Try running the fallback function for the given key.
Definition at line 96 of file factory.cc. References rutz::shared_ptr< T >::get(), and GVX_TRACE. Referenced by rutz::factory< nub::ref< P > >::find_creator(). |
1.4.4