| 72 | } |
| 73 | |
| 74 | AbstractClass *CreateObject(const char *name) const |
| 75 | { |
| 76 | const ObjectFactory<AbstractClass> *factory = GetFactory(name); |
| 77 | if (!factory) |
| 78 | throw FactoryNotFound(name); |
| 79 | return factory->CreateObject(); |
| 80 | } |
| 81 | |
| 82 | // Return a vector containing the factory names. This is easier than returning an iterator. |
| 83 | // from Andrew Pitonyak |
nothing calls this directly
no test coverage detected