You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2001/12/14 21:01:40 UTC

cvs commit: xml-xalan/c/src/XercesParserLiaison XercesParserLiaison.cpp XercesParserLiaison.hpp

dbertoni    01/12/14 12:01:40

  Modified:    c/src/XercesParserLiaison XercesParserLiaison.cpp
                        XercesParserLiaison.hpp
  Log:
  Changed for renamed XMLParserLiaison member function.  Added new accessor function for document number.
  
  Revision  Changes    Path
  1.42      +10 -8     xml-xalan/c/src/XercesParserLiaison/XercesParserLiaison.cpp
  
  Index: XercesParserLiaison.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XercesParserLiaison/XercesParserLiaison.cpp,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- XercesParserLiaison.cpp	2001/11/30 16:46:35	1.41
  +++ XercesParserLiaison.cpp	2001/12/14 20:01:40	1.42
  @@ -2,7 +2,7 @@
    * The Apache Software License, Version 1.1
    *
    *
  - * Copyright (c) 1999 The Apache Software Foundation.  All rights 
  + * Copyright (c) 1999-2001 The Apache Software Foundation.  All rights 
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -111,8 +111,10 @@
   
   
   
  -XercesParserLiaison::XercesParserLiaison(XercesDOMSupport&	/* theSupport */) :
  -	m_documentNumber(0),
  +XercesParserLiaison::XercesParserLiaison(
  +			XercesDOMSupport&	/* theSupport */,
  +			DocumentNumberType	theStartingNumber) :
  +	m_documentNumber(theStartingNumber),
   	m_indent(-1),
   	m_useValidation(false),
   	m_includeIgnorableWhitespace(true),
  @@ -129,8 +131,8 @@
   
   
   
  -XercesParserLiaison::XercesParserLiaison() :
  -	m_documentNumber(0),
  +XercesParserLiaison::XercesParserLiaison(DocumentNumberType		theStartingNumber) :
  +	m_documentNumber(theStartingNumber),
   	m_indent(-1),
   	m_useValidation(false),
   	m_includeIgnorableWhitespace(true),
  @@ -264,8 +266,8 @@
   
   
   
  -unsigned long
  -XercesParserLiaison::getDocumentNumber()
  +XercesParserLiaison::DocumentNumberType
  +XercesParserLiaison::getNextDocumentNumber()
   {
   	return m_documentNumber++;
   }
  @@ -597,7 +599,7 @@
   			bool					buildBridge)
   {
   	XercesDocumentBridge* const		theNewDocument =
  -		new XercesDocumentBridge(theXercesDocument, m_documentNumber++, threadSafe, buildBridge);
  +		new XercesDocumentBridge(theXercesDocument, getNextDocumentNumber(), threadSafe, buildBridge);
   
   	m_documentMap[theNewDocument] = theNewDocument;
   
  
  
  
  1.29      +17 -6     xml-xalan/c/src/XercesParserLiaison/XercesParserLiaison.hpp
  
  Index: XercesParserLiaison.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XercesParserLiaison/XercesParserLiaison.hpp,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- XercesParserLiaison.hpp	2001/11/30 16:46:35	1.28
  +++ XercesParserLiaison.hpp	2001/12/14 20:01:40	1.29
  @@ -2,7 +2,7 @@
    * The Apache Software License, Version 1.1
    *
    *
  - * Copyright (c) 1999 The Apache Software Foundation.  All rights 
  + * Copyright (c) 1999-2001 The Apache Software Foundation.  All rights 
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -99,15 +99,20 @@
   	 * Construct a XercesParserLiaison instance.
   	 *
   	 * @param theSupport instance of DOMSupport object
  +	 * @param theStartingNumber the starting number for documents
   	 *
  -	 * @deprecated This constructor is deprecated.  Use the default constructor instead.
  +	 * @deprecated This constructor is deprecated.  Use the next constructor instead.
   	 */
  -	XercesParserLiaison(XercesDOMSupport&	theSupport);
  +	XercesParserLiaison(
  +			XercesDOMSupport&	theSupport,
  +			DocumentNumberType	theStartingNumber);
   
   	/**
   	 * Construct a XercesParserLiaison instance.
  +	 *
  +	 * @param theStartingNumber the starting number for documents
   	 */
  -	XercesParserLiaison();
  +	XercesParserLiaison(DocumentNumberType	theStartingNumber = 0);
   
   	virtual
   	~XercesParserLiaison();
  @@ -145,8 +150,8 @@
   	virtual void
   	destroyDocument(XalanDocument*	theDocument);
   
  -	virtual unsigned long
  -	getDocumentNumber();
  +	virtual DocumentNumberType
  +	getNextDocumentNumber();
   
   	virtual int
   	getIndent() const;
  @@ -417,6 +422,12 @@
   		{
   			m_buildBridge = true;
   		}
  +	}
  +
  +	DocumentNumberType
  +	getDocumentNumber() const
  +	{
  +		return m_documentNumber;
   	}
   
   protected:
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org