Garmin Fleet Management Controller  2.19.0
XMLTransformer Class Reference

Utility class for simplifying XSL transformations. More...

#include <XMLTransformer.h>

Public Member Functions

 XMLTransformer (LPCTSTR stylesheet)
 Constructor. More...
 
virtual ~XMLTransformer (void)
 Destructor. More...
 
BOOL transform (LPCTSTR src, IStream *dst, CMapStringToString &params)
 transform an XML document More...
 

Protected Attributes

CString m_stylesheet
 The path to the XSL stylesheet use by this transformer. More...
 

Detailed Description

Utility class for simplifying XSL transformations.

This class encapsulates loading a stylesheet for trans- forming an XML source document, along with ability to cache the loaded transformation processor for re-use

Definition at line 22 of file XMLTransformer.h.

Constructor & Destructor Documentation

XMLTransformer::XMLTransformer ( LPCTSTR  stylesheet)

Constructor.

Definition at line 15 of file XMLTransformer.cpp.

References m_stylesheet.

XMLTransformer::~XMLTransformer ( void  )
virtual

Destructor.

Definition at line 23 of file XMLTransformer.cpp.

Member Function Documentation

BOOL XMLTransformer::transform ( LPCTSTR  src,
IStream *  dst,
CMapStringToString &  params 
)

transform an XML document

Load this instance's stylesheet and the specified XML document source and then transform it with the specified params

Parameters
srcThe XML document to be transformed
dstThe destination for the transformation output
paramsAn associative array of parameters to be supplied to the stylesheet during transformation

Definition at line 36 of file XMLTransformer.cpp.

References FALSE, and m_stylesheet.

Referenced by CCustomFormsDlg::transform().

Member Data Documentation

CString XMLTransformer::m_stylesheet
protected

The path to the XSL stylesheet use by this transformer.

Definition at line 32 of file XMLTransformer.h.

Referenced by transform(), and XMLTransformer().


The documentation for this class was generated from the following files: