You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by au...@apache.org on 2001/03/15 23:19:57 UTC

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

auriemma    01/03/15 14:19:56

  Modified:    c/src/XSLT XSLTResultTarget.cpp XSLTResultTarget.hpp
  Log:
  Added constructor overloades for const char * and std ostream to allow implicit conversion of these types.
  
  Revision  Changes    Path
  1.7       +32 -0     xml-xalan/c/src/XSLT/XSLTResultTarget.cpp
  
  Index: XSLTResultTarget.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTResultTarget.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- XSLTResultTarget.cpp	2000/12/08 22:18:58	1.6
  +++ XSLTResultTarget.cpp	2001/03/15 22:19:52	1.7
  @@ -95,6 +95,20 @@
   
   
   
  +XSLTResultTarget::XSLTResultTarget(const char*	fileName) :
  +	m_fileName(fileName),
  +	m_byteStream(0),
  +	m_encoding(),
  +	m_characterStream(0),
  +	m_document(0),
  +	m_documentFragment(0),
  +	m_element(0),
  +	m_formatterListener(0)
  +{
  +}
  +
  +
  +
   #if defined(XALAN_NO_NAMESPACES)
   XSLTResultTarget::XSLTResultTarget(ostream*		theStream) :
   #else
  @@ -110,6 +124,24 @@
   	m_formatterListener(0)
   {
   	assert(theStream != 0);
  +}
  +
  +
  +
  +#if defined(XALAN_NO_NAMESPACES)
  +XSLTResultTarget::XSLTResultTarget(ostream&		theStream) :
  +#else
  +XSLTResultTarget::XSLTResultTarget(std::ostream&	theStream) :
  +#endif
  +	m_fileName(),
  +	m_byteStream(&theStream),
  +	m_encoding(),
  +	m_characterStream(0),
  +	m_document(0),
  +	m_documentFragment(0),
  +	m_element(0),
  +	m_formatterListener(0)
  +{
   }
   
   
  
  
  
  1.12      +18 -0     xml-xalan/c/src/XSLT/XSLTResultTarget.hpp
  
  Index: XSLTResultTarget.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTResultTarget.hpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- XSLTResultTarget.hpp	2000/12/08 22:18:58	1.11
  +++ XSLTResultTarget.hpp	2001/03/15 22:19:54	1.12
  @@ -108,6 +108,13 @@
   	XSLTResultTarget(const XalanDOMString&	fileName);
   
   	/**
  +	 * Create a new output target with a file name.
  +	 *
  +	 * @param fileName valid system file name
  +	 */
  +	XSLTResultTarget(const char*	fileName);
  +
  +	/**
   	 * Create a new output target with a stream.
   	 *
   	 * @param byteStream a pointer to a std ostream for the output
  @@ -116,6 +123,17 @@
   	XSLTResultTarget(ostream*		theStream);
   #else
   	XSLTResultTarget(std::ostream*	theStream);
  +#endif
  +
  +	/**
  +	 * Create a new output target with a stream.
  +	 *
  +	 * @param byteStream a reference to a std ostream for the output
  +	 */
  +#if defined(XALAN_NO_NAMESPACES)
  +	XSLTResultTarget(ostream&		theStream);
  +#else
  +	XSLTResultTarget(std::ostream&	theStream);
   #endif
   
   	/**
  
  
  

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