From: guigues Date: Mon, 6 Apr 2009 12:09:00 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: EED.02Oct2009~117 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=0c5c3d9301e8346541adc8251a663f6269303cd1;p=creaImageIO.git *** empty log message *** --- diff --git a/src2/creaImageIOSQLiteTreeHandler.cpp b/src2/creaImageIOSQLiteTreeHandler.cpp index 7ce1304..564ec33 100644 --- a/src2/creaImageIOSQLiteTreeHandler.cpp +++ b/src2/creaImageIOSQLiteTreeHandler.cpp @@ -130,10 +130,11 @@ namespace creaImageIO //===================================================================== int SQLiteTreeHandler::AddBranch( const AttributeMapType& attr ) { - mIsAdding=true; + //std::cout << "AddBranch" << std::endl; tree::Node* parent = DBGetParent(attr); + //std::cout << " parent = "<GetLabel()<<" level "<GetLevel()<GetLevel()+1); } @@ -695,6 +696,9 @@ namespace creaImageIO int p=0; while (!q.eof()) { + + // std::cout << "DBLoadCh : creating node level "<GetLabel() - <<"'"<GetLabel() + // <<"'"<GetLevel()+1; level < GetTree().GetNumberOfLevels(); @@ -763,7 +767,8 @@ namespace creaImageIO { // Create Node tree::Node* child = new tree::Node(parent,attr); - std::cout<<"Number of children "<GetNumberOfChildren()<SetChildrenLoaded(true); + // std::cout<<"Number of children "<GetNumberOfChildren()<GetLevel()>0 ) child->SetAttribute("PARENT_ID",parent->GetAttribute("ID"));