dbertoni    2002/12/18 09:22:13

  Modified:    c/Tests/Performance perf.cpp
  Log:
  Changes for C++ namespaces support.
  
  Revision  Changes    Path
  1.34      +32 -12    xml-xalan/c/Tests/Performance/perf.cpp
  
  Index: perf.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/Tests/Performance/perf.cpp,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- perf.cpp  27 Nov 2002 22:36:29 -0000      1.33
  +++ perf.cpp  18 Dec 2002 17:22:13 -0000      1.34
  @@ -55,6 +55,11 @@
    * <http://www.apache.org/>.
    */
   
  +// Base header file.  Must be first.
  +#include <Include/PlatformDefinitions.hpp>
  +
  +
  +
   #include <cstdio>
   
   #if defined(XALAN_CLASSIC_IOSTREAMS)
  @@ -110,6 +115,11 @@
   
   
   
  +// Just hoist everything...
  +XALAN_CPP_NAMESPACE_USE
  +
  +
  +
   inline bool
   checkForExclusion(const XalanDOMString&              currentFile)
   {
  @@ -187,11 +197,12 @@
   
   
   inline clock_t
  -transformWUnparsedSource(const XalanDOMString&       theFileName,
  -                              XSLTProcessor&                 theProcessor,
  -                              const StylesheetRoot*  theStylesheetRoot,
  -                              XSLTResultTarget&      theResults,
  -                              StylesheetExecutionContextDefault&  
theExecutionContext)
  +transformWUnparsedSource(
  +                     const XalanDOMString&                           theFileName,
  +                     XSLTProcessor&                                          
theProcessor,
  +                     const StylesheetRoot*                           
theStylesheetRoot,
  +                     XSLTResultTarget&                                       
theResults,
  +                     StylesheetExecutionContextDefault&  theExecutionContext)
   {
        const XSLTInputSource   csSourceXML(c_wstr(theFileName));
   
  @@ -231,7 +242,8 @@
   
   
   inline long
  -eTOeTransform(const XSLTInputSource&         inputSource, 
  +eTOeTransform(
  +                     const XSLTInputSource&                  inputSource,
                const XSLTInputSource&                  stylesheetSource,
                XSLTResultTarget&                               outputTarget,
                        StylesheetConstructionContext&  constructionContext,
  @@ -239,11 +251,14 @@
                        XSLTProcessor&                                  theProcessor)
   {
        const clock_t startTime=clock();
  -     theProcessor.process(inputSource, 
  -                                     stylesheetSource,
  -                                     outputTarget,
  -                                             constructionContext,
  -                                             executionContext);
  +
  +     theProcessor.process(
  +                             inputSource, 
  +                         stylesheetSource,
  +                             outputTarget,
  +                             constructionContext,
  +                             executionContext);
  +
        const clock_t endTime=clock();
   
        return endTime - startTime;
  @@ -315,6 +330,8 @@
                        {
                                XSLTInit        theInit;  
                
  +                             typedef FileUtility::FileNameVectorType         
FileNameVectorType;
  +
                                // Get the list of Directories that are below perf and 
iterate through them
                                const FileNameVectorType dirs = 
h.getDirectoryNames(h.args.base);
   
  @@ -343,6 +360,9 @@
                                                // Define  variables used for timing 
and reporting ...
                                                clock_t startTime, endTime, accmTime, 
avgEtoe;
                                                double timeinMilliseconds, theAverage;
  +
  +                                             typedef XMLFileReporter::Hashtable     
 Hashtable;
  +
                                                Hashtable attrs;
                                        
                                                if (skip && 
checkForExclusion(files[i]))
  @@ -432,7 +452,7 @@
                                                // the processor, since those objects 
have the same lifetime as
                                                // other objects created as a result 
of the execution.
   
  -                                             const XSLTResultTarget  
theResultTarget(theOutputFile);
  +                                             XSLTResultTarget                
theResultTarget(theOutputFile);
                                                const XSLTInputSource   
xslInputSource(theXSLFile);
                                                const XSLTInputSource   
xmlInputSource(theXMLFile);
   
  
  
  

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

Reply via email to