Changeset 165

Show
Ignore:
Timestamp:
07/18/08 14:45:21 (6 months ago)
Author:
zork
Message:

XMLIStream debug more descriptive

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dba/dba/xmlistream.cpp

    r164 r165  
    6363 
    6464  while(node != NULL) { 
    65     debug("checking node %s", (const char*)node->name); 
     65    //debug("checking node %s", (const char*)node->name); 
    6666    if (!strcmp(getRootTableName(child),(const char*)node->name)) { 
    6767      debug("updating data for member %s, starting at node %s", getRootTableName(child),(const char*)node->name); 
     
    7070      applyFilters(ref,node); 
    7171      getChildren(ref,node->children); 
     72      if (node->children) debug("up at node %s", (const char*)node->name); 
    7273    }; 
    7374    node = setNextNode(node); 
     
    7980  pNode = findNonTextNode(pNode); 
    8081  const ColTable* table = getColTable(*pObject); 
     82  if (pNode != NULL) debug("going down, node %s, updating object '%s' collections", pNode->name, getRootTableName(*pObject)); 
    8183  while(pNode != NULL) { 
    82     debug("getChildren for %s at node %s", getRootTableName(*pObject), pNode->name); 
    8384    //traverse through call collection members that 
    8485    //have fkey name.  
     
    9697            throw DataException(err.str()); 
    9798          } else { 
     99            debug("got fkeyname, going down to node %s children", node->name); 
    98100            updateCollection(pObject,entry,node->children); 
     101            debug("up (from fknode) at node %s", node->name); 
    99102          }; 
    100103        } else { 
     
    132135    //collection tables 
    133136    Storeable* ref = pFilter->put(); 
    134     if (mCurrentNode->children != NULL) 
     137    if (mCurrentNode->children != NULL) { 
    135138      getChildren(ref,mCurrentNode->children); 
     139      if (mCurrentNode->children != NULL) debug("up at node %s", (const char*)mCurrentNode->name); 
     140    }; 
    136141    ret = true; 
    137142 
     
    188193    if (!xmlNodeIsText(node) && !xmlStrcmp(name,node->name)) 
    189194      break; 
     195    if (!xmlNodeIsText(node)) debug("findNode: ignoring node %s", node->name != NULL ? (const char*)node->name : "(null)"); 
    190196  }; 
    191197 
  • trunk/dba/test/xmltestcase.cpp

    r164 r165  
    457457 
    458458    dba::XMLIStream stream(ar.getIStream()); 
     459    //stream.enableDebug(); 
    459460    TreeObject obj1; 
    460461    stream.get(&obj1);