{
// Iterate the children
- /*tree::Node::ChildrenListType::iterator i;
+ tree::Node::ChildrenListType::iterator i;
for (i = node->GetChildrenList().begin();
i!= node->GetChildrenList().end();
++i)
{
nbloaded += DBLoadChildren(*i,numberoflevels-1);
- }*/
-
+ }
+ node->SetChildrenLoaded(true);
return nbloaded;
}
else
{
/// If children not loaded : do it and recurse
- std::cout<<"Children are not loaded for node:"<<node->GetLabel()<<std::endl;
- std::cout<<"Children are not loaded for node (pointer):"<<node<<std::endl;
// Query DB
int level = node->GetLevel();