dbertoni    2003/01/28 21:24:29

  Modified:    c/src/XMLSupport FormatterTreeWalker.cpp
                        FormatterTreeWalker.hpp
  Log:
  Added support for stopping a traversal, then restarting it.
  
  Revision  Changes    Path
  1.9       +13 -9     xml-xalan/c/src/XMLSupport/FormatterTreeWalker.cpp
  
  Index: FormatterTreeWalker.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XMLSupport/FormatterTreeWalker.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- FormatterTreeWalker.cpp   24 Jan 2003 02:32:00 -0000      1.8
  +++ FormatterTreeWalker.cpp   29 Jan 2003 05:24:29 -0000      1.9
  @@ -2,7 +2,7 @@
    * The Apache Software License, Version 1.1
    *
    *
  - * Copyright (c) 1999-2002 The Apache Software Foundation.  All rights 
  + * Copyright (c) 1999-2003 The Apache Software Foundation.  All rights 
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -90,7 +90,7 @@
   
   
   
  -void
  +bool
   FormatterTreeWalker::startNode(const XalanNode*              node)
   {
        assert(node != 0);
  @@ -166,25 +166,27 @@
                // Do nothing...
                break;
        }
  +
  +     return false;
   }
   
   
   
  -void
  +bool
   FormatterTreeWalker::startNode(XalanNode*    node)
   {
        assert(node != 0);
   
   #if defined(XALAN_OLD_STYLE_CASTS)
  -     startNode((const XalanNode*)node);
  +     return startNode((const XalanNode*)node);
   #else
  -     startNode(const_cast<const XalanNode*>(node));
  +     return startNode(const_cast<const XalanNode*>(node));
   #endif
   }
   
   
   
  -void
  +bool
   FormatterTreeWalker::endNode(const XalanNode*        node)
   {
        assert(node != 0);
  @@ -203,17 +205,19 @@
                // Do nothing
                break;
        }
  +
  +     return false;
   }
   
   
   
  -void
  +bool
   FormatterTreeWalker::endNode(XalanNode*              node)
   {
   #if defined(XALAN_OLD_STYLE_CASTS)
  -     endNode((const XalanNode*)node);
  +     return endNode((const XalanNode*)node);
   #else
  -     endNode(const_cast<const XalanNode*>(node));
  +     return endNode(const_cast<const XalanNode*>(node));
   #endif
   }
   
  
  
  
  1.5       +5 -5      xml-xalan/c/src/XMLSupport/FormatterTreeWalker.hpp
  
  Index: FormatterTreeWalker.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XMLSupport/FormatterTreeWalker.hpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- FormatterTreeWalker.hpp   20 Nov 2002 02:32:13 -0000      1.4
  +++ FormatterTreeWalker.hpp   29 Jan 2003 05:24:29 -0000      1.5
  @@ -2,7 +2,7 @@
    * The Apache Software License, Version 1.1
    *
    *
  - * Copyright (c) 1999-2002 The Apache Software Foundation.  All rights 
  + * Copyright (c) 1999-2003 The Apache Software Foundation.  All rights 
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -93,16 +93,16 @@
   
   protected:
   
  -     virtual void
  +     virtual bool
        startNode(const XalanNode*      node);
   
  -     virtual void
  +     virtual bool
        startNode(XalanNode*    node);
   
  -     virtual void
  +     virtual bool
        endNode(const XalanNode*        node);
   
  -     virtual void
  +     virtual bool
        endNode(XalanNode*      node);
   
   private:
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to