Changeset 5781 for code/trunk/src/libraries/core/ClassFactory.h
- Timestamp:
- Sep 24, 2009, 11:02:42 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/ClassFactory.h
r5774 r5781 55 55 { 56 56 public: 57 static bool create(const std::string& name );57 static bool create(const std::string& name, bool bLoadable = true); 58 58 BaseObject* fabricate(BaseObject* creator); 59 59 … … 73 73 */ 74 74 template <class T> 75 bool ClassFactory<T>::create(const std::string& name )75 bool ClassFactory<T>::create(const std::string& name, bool bLoadable) 76 76 { 77 77 COUT(4) << "*** ClassFactory: Create entry for " << name << " in Factory." << std::endl; 78 78 ClassIdentifier<T>::getIdentifier(name)->addFactory(new ClassFactory<T>); 79 ClassIdentifier<T>::getIdentifier()->setLoadable(bLoadable); 79 80 Factory::add(name, ClassIdentifier<T>::getIdentifier()); 80 81
Note: See TracChangeset
for help on using the changeset viewer.