X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkComplexBlackBoxDescriptor.cxx;h=5f445e23582210373e7d849ab57069541662a56d;hb=4d6822024afbbe783cdd620e248184b37d84c540;hp=20d2ca9a2db3572ab4cf3a9306ba77a55e31fa31;hpb=cfad95b6e08e6e53846ffcda7fbc5932065f2c47;p=bbtk.git diff --git a/kernel/src/bbtkComplexBlackBoxDescriptor.cxx b/kernel/src/bbtkComplexBlackBoxDescriptor.cxx index 20d2ca9..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); - - } //======================================================================= @@ -416,7 +410,7 @@ namespace bbtk Package::Pointer p = d->GetPackage(); std::string name = b->second->bbGetTypeName(); - + std::string url; if (relative_link) url = p->GetDocRelativeURL(); @@ -666,6 +660,60 @@ size_t ComplexBlackBoxDescriptor::GetObjectInternalSize() const return s; } //========================================================================== - +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(); + //std::cout<<"nombre objeto d "<< d->GetObjectName() <GetPackage(); + std::string nameBox = b->second->bbGetTypeName(); + std::string packageBox = p->GetName(); + tree.insertChild(nameBox); + std::cout<<"----2~ "<GetBoxesInside (tree.childs[k], cont); + std::cout<<"----3~ "<