void ExecBbiCommand::DoProcess()
{
- /*
+
// Look for the interpreter
- bbtk::Interpreter* I = 0;
+ bbtk::Interpreter::Pointer I;
bool delete_inter = false;
if (bbGetParent() != 0)
{
- bbtk::Factory* f = ((bbtk::ComplexBlackBoxDescriptor*)bbGetParent()
- ->bbGetDescriptor())->GetFactory();
+ bbtk::Factory::Pointer f
+ = ((bbtk::ComplexBlackBoxDescriptor*)bbGetParent()
+ ->bbGetDescriptor().get())->GetFactory();
if ((f != 0)&&
(f->GetExecuter()))
{
if (I==0)
{
// bbtkError("ExecBbiCommand::DoProcess() : could not find interpreter");
- I = new bbtk::Interpreter();
+ I = bbtk::Interpreter::New();
delete_inter = true;
}
}
- if (delete_inter) delete I;
- */
+// if (delete_inter) delete I;
+
/* Grrr not works in windows
char * pch;
pch = strtok (bbGetInputIn(),";");