X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkComplexBlackBoxDescriptor.cxx;h=5f445e23582210373e7d849ab57069541662a56d;hb=4d6822024afbbe783cdd620e248184b37d84c540;hp=c25819f5003eb9bb497c8f4aa6e7530defb99cbb;hpb=4634377e45465b15485afc9da74a5bf13b32d17b;p=bbtk.git diff --git a/kernel/src/bbtkComplexBlackBoxDescriptor.cxx b/kernel/src/bbtkComplexBlackBoxDescriptor.cxx index c25819f..5f445e2 100644 --- a/kernel/src/bbtkComplexBlackBoxDescriptor.cxx +++ b/kernel/src/bbtkComplexBlackBoxDescriptor.cxx @@ -202,29 +202,23 @@ namespace bbtk <bbGetBlackBox( from ); if ( !bbfrom ) - { - bbtkError("the black box \""<bbGetBlackBox( to ); if ( !bbto ) - { - bbtkError("the black box \""<NewConnection( bbfrom, output, bbto, input ); - + { + bbtkError("the black box \""<NewConnection( bbfrom, output, bbto, input ); mPrototype->bbAddConnection(c); - - } //======================================================================= @@ -666,47 +660,57 @@ size_t ComplexBlackBoxDescriptor::GetObjectInternalSize() const return s; } //========================================================================== -void ComplexBlackBoxDescriptor::GetBoxesInside (NodeTreeC& tree, std::vector& list, int cont) +void ComplexBlackBoxDescriptor::GetBoxesInside (NodeTreeC& tree, int cont) { - + std::cout<<"getBoxesInside recursivo "<bbGetBlackBoxMap(); - + + std::cout<<"----B size "<< B.size() << std::endl; + std::cout<<"----antes if "< pdeps; ComplexBlackBox::BlackBoxMapType::const_iterator b; + std::cout<<"----antes for "<second->bbGetDescriptor(); - + BlackBoxDescriptor::Pointer d = b->second->bbGetDescriptor(); + //std::cout<<"nombre objeto d "<< d->GetObjectName() <GetPackage(); std::string nameBox = b->second->bbGetTypeName(); std::string packageBox = p->GetName(); - tree.insertChild(nameBox); - - list.push_back(nameBox); - list.push_back(packageBox); - - d->GetBoxesInside (tree.childs[k],list, cont+1); + std::cout<<"----2~ "<GetBoxesInside (tree.childs[k], cont); + std::cout<<"----3~ "<