X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkComplexBlackBoxDescriptor.cxx;h=c25819f5003eb9bb497c8f4aa6e7530defb99cbb;hb=4634377e45465b15485afc9da74a5bf13b32d17b;hp=20d2ca9a2db3572ab4cf3a9306ba77a55e31fa31;hpb=8ec4d6743d92a164a6eade7c37e197f2c365c5e9;p=bbtk.git diff --git a/kernel/src/bbtkComplexBlackBoxDescriptor.cxx b/kernel/src/bbtkComplexBlackBoxDescriptor.cxx index 20d2ca9..c25819f 100644 --- a/kernel/src/bbtkComplexBlackBoxDescriptor.cxx +++ b/kernel/src/bbtkComplexBlackBoxDescriptor.cxx @@ -416,7 +416,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 +666,50 @@ size_t ComplexBlackBoxDescriptor::GetObjectInternalSize() const return s; } //========================================================================== +void ComplexBlackBoxDescriptor::GetBoxesInside (NodeTreeC& tree, std::vector& list, int cont) + { + std::string name = GetTypeName(); + std::string descr = GetDescription(); + std::string author = GetAuthor(); + list.push_back(name); + tree.setData(name); + // list.push_back(descr); + // list.push_back(author); + int k = 0; + const ComplexBlackBox::BlackBoxMapType& B = mPrototype->bbGetBlackBoxMap(); + if (B.size()) + { + std::set pdeps; + ComplexBlackBox::BlackBoxMapType::const_iterator b; + for ( b = B.begin(); b != B.end(); ++b ) + { + BlackBoxDescriptor::Pointer d = b->second->bbGetDescriptor(); + + + //if (pdeps.find(d) != pdeps.end()) + // continue; + //pdeps.insert(d); + + Package::Pointer p = d->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); + k++; + } // for + + } // If B.size + + } + +//=================================================== + + //========================================================================== }