nub::obj_mgr Namespace Reference

A thin wrapper around nub::obj_factory. More...

Functions

nub::soft_ref< nub::objectnew_obj (const char *type)
 Will not return 0; will throw an exception on failure.
nub::soft_ref< nub::objectnew_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)

Detailed Description

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.


Function Documentation

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  ) 

Will not return 0; will throw an exception on failure.

Definition at line 45 of file objmgr.cc.

Generated on Sun May 8 08:30:53 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3