// We have to "lock" the smart pointer because the factory
// only keeps a weak pointer on the executer
// -> this would auto-destroy !!
+
mFactory->SetExecuter(MakePointer(this,true));
+
Reset();
bbtkDebugMessage("object",2,"<== Executer()" <<std::endl);
}
const std::string &input,
const std::string &value)
{
- BlackBox::Pointer b = GetCurrentDescriptor()->GetPrototype()->bbGetBlackBox(box);
+ BlackBox::Pointer b = GetCurrentDescriptor()->GetPrototype()->bbGetBlackBox(box);
// Looks for the adaptor
if ( ( b->bbGetInputType(input) != typeid(bbtk::any<bbtk::thing>) )&&
a->bbExecute();
b->bbSetInput(input,a->bbGetOutput("Out"));
// a->Delete();
- }
- else
- {
+ } else {
std::string v(value);
b->bbSetInput(input,v);
}
//b->bbSetInput(input,a->bbGetOutput("Out"));
// a->bbDelete();
return r;
- }
- else
- {
+ } else {
b->bbExecute();
return b->bbGetOutput(output).unsafe_get<std::string>();
// std::string v = *((std::string*)b->bbGetOutput(output)) ;