+ //==========================================================================
+ std::string ComplexBlackBoxDescriptor::GetObjectName() const
+ {
+ return std::string("ComplexBlackBoxDescriptor '")+GetFullTypeName()
+ +std::string("'");
+ }
+ //==========================================================================
+ //=======================================================================
+ std::string ComplexBlackBoxDescriptor::GetObjectInfo() const
+ {
+ std::string i;
+ return i;
+ }
+ //=======================================================================
+ //==========================================================================
+size_t ComplexBlackBoxDescriptor::GetObjectSize() const
+{
+ size_t s = Superclass::GetObjectSize();
+ s += ComplexBlackBoxDescriptor::GetObjectInternalSize();
+ return s;
+ }
+ //==========================================================================
+ //==========================================================================
+size_t ComplexBlackBoxDescriptor::GetObjectInternalSize() const
+{
+ size_t s = sizeof(ComplexBlackBoxDescriptor);
+ return s;
+ }
+ //==========================================================================
+ //==========================================================================
+ size_t ComplexBlackBoxDescriptor::GetObjectRecursiveSize() const
+ {
+ size_t s = Superclass::GetObjectRecursiveSize();
+ s += ComplexBlackBoxDescriptor::GetObjectInternalSize();
+ s += mPrototype->GetObjectRecursiveSize();
+ return s;
+ }
+ //==========================================================================
+void ComplexBlackBoxDescriptor::GetBoxesInside (NodeTreeC& tree, std::vector<std::string>& 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<BlackBoxDescriptor::Pointer> 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
+
+ }