// make a new instance of a named subclass of MLProc. // MLProcPtr MLMultiContainer::newProc(const MLSymbol className, const MLSymbol procName) { MLProcPtr pNew; // call factory to get instance of processor class // sets context of new proc to this. pNew = theProcFactory.create(className, this); if (!pNew) { debug() << "MLMultiContainer: newProc: couldn't create!\n"; } else { pNew->setName(procName); pNew->setContext(this); } return pNew; }