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...@locus.apache.org on 2000/08/28 17:58:17 UTC
cvs commit: xml-xalan/c/samples/TraceListen TraceListen.cpp
auriemma 00/08/28 08:58:16
Modified: c/samples/TraceListen TraceListen.cpp
Log:
Made some minor changes to support UNIX platforms.
Revision Changes Path
1.4 +13 -11 xml-xalan/c/samples/TraceListen/TraceListen.cpp
Index: TraceListen.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/samples/TraceListen/TraceListen.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- TraceListen.cpp 2000/08/10 19:14:02 1.3
+++ TraceListen.cpp 2000/08/28 15:58:14 1.4
@@ -1,3 +1,6 @@
+// Base header file. Must be first.
+#include <Include/PlatformDefinitions.hpp>
+
#include <iostream>
#include <fstream>
@@ -39,11 +42,11 @@
using std::endl;
#endif
- // TraceListener flags...
- bool traceTemplates = false;
- bool traceTemplateChildren = false;
- bool traceGenerationEvent = false;
- bool traceSelectionEvent = false;
+ // TraceListener flags...
+ bool traceTemplates = false;
+ bool traceTemplateChildren = false;
+ bool traceGenerationEvent = false;
+ bool traceSelectionEvent = false;
if (argc < 2 || argc > 5)
{
@@ -115,7 +118,7 @@
theXPathSupport,
theXObjectFactory);
- // Our input files...The assumption is that the executable will be run
+ // Our input files...The assumption is that the executable will be run
// from same directory as the input files.
const XalanDOMString theXMLFileName("birds.xml");
const XalanDOMString theXSLFileName("birds.xsl");
@@ -133,18 +136,17 @@
XercesStdTextOutputStream theStdErr(cerr);
XercesDOMPrintWriter diagnosticsWriter(theStdErr);
- // Set up the TraceListener...
- auto_ptr<TraceListener> theTraceListener(
- new TraceListenerDefault(
+ // Set up the TraceListener...
+ TraceListenerDefault theTraceListener(
diagnosticsWriter,
traceTemplates,
traceTemplateChildren,
traceGenerationEvent,
- traceSelectionEvent));
+ traceSelectionEvent);
// Add the TraceListener to the XSLT processor...
theProcessor.setTraceSelects(traceSelectionEvent);
- theProcessor.addTraceListener(theTraceListener.get());
+ theProcessor.addTraceListener(&theTraceListener);
// Perform the transformation...
theProcessor.process(