1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "artsbuilder.h" using namespace Arts; using namespace std; class LocalFactory_impl : virtual public LocalFactory_skel { public: Object createObject(const string& name) { return SubClass(name); } }; REGISTER_IMPLEMENTATION(LocalFactory_impl);