A thin wrapper around nub::obj_factory. More...
Functions | |
nub::soft_ref< nub::object > | new_obj (const char *type) |
Will not return 0; will throw an exception on failure. | |
nub::soft_ref< nub::object > | new_obj (const rutz::fstring &type) |
Will not return 0; will throw an exception on failure. | |
template<class T , class S > | |
nub::soft_ref< T > | new_typed_obj (S type) |
A thin wrapper around nub::obj_factory.
This provides some compile-time insulation from nub::obj_factory for clients that only need to create objects, but don't need to register new object-creation functions.
nub::soft_ref< nub::object > nub::obj_mgr::new_obj | ( | const rutz::fstring & | type | ) |
Will not return 0; will throw an exception on failure.
Definition at line 50 of file objmgr.cc.
References nub::obj_factory::instance(), and rutz::factory< T >::new_checked_object().
nub::soft_ref< nub::object > nub::obj_mgr::new_obj | ( | const char * | type | ) |