Changeset 5774 for code/trunk/src/libraries/core/ClassFactory.h
- Timestamp:
- Sep 23, 2009, 11:31:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/ClassFactory.h
r5738 r5774 55 55 { 56 56 public: 57 static bool create(const std::string& name , bool bLoadable = true);57 static bool create(const std::string& name); 58 58 BaseObject* fabricate(BaseObject* creator); 59 59 … … 73 73 */ 74 74 template <class T> 75 bool ClassFactory<T>::create(const std::string& name , bool bLoadable)75 bool ClassFactory<T>::create(const std::string& name) 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);80 79 Factory::add(name, ClassIdentifier<T>::getIdentifier()); 81 80
Note: See TracChangeset
for help on using the changeset viewer.