Main | License | Installation | FAQ | Screenshots | Contact | Links | Sf.net | Freshmeat.net | KDE-Apps.org
Requirements | Design | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

XSLCompiler Class Reference
[Compilers]

#include <xslCompiler.hpp>

Inheritance diagram for XSLCompiler:

Inheritance graph
[legend]

Public Member Functions

 XSLCompiler (const std::string &_xslScriptFileName, FormatterListener::eFormat _format, const std::string &_outputEncoding, const std::string &_schemaURI, const std::string &_emptyResult="", XSLParseErrorHandlerPtr _xslParseErrorHandler=XSLParseErrorHandlerPtr(new XSLParseErrorHandler)) throw (Error)
 Constructor.
virtual ~XSLCompiler (void)
 Destructor.
virtual void translate (std::istream &inputStream, std::ostream &outputStream) const throw (Error)
void setEmptyResult (const std::string &_emptyResult)
void setParseErrorHandler (XSLParseErrorHandlerPtr _xslParseErrorHandler)
void setParam (const std::string &name, const std::string &value)
bool clearParam (const std::string &name)

Protected Attributes

std::string xslScriptFileName
FormatterListener::eFormat format
XalanTransformer theXalanTransformer
const
XalanCompiledStylesheet * 
compiledStyleSheet
std::string outputEncoding
std::string schemaURI
std::string emptyResult
std::map
< std::string,
std::string > 
params
XSLParseErrorHandlerPtr xslParseErrorHandler

Detailed Description

XSL compiler
Todo:
It shouldn't be necessary to specify FormatterListener::eFormat
Date:
Thu Mar 10 2005
Author:
Jan Wedekind (wedesoft@users.sourceforge.net)

Definition at line 39 of file xslCompiler.hpp.


Constructor & Destructor Documentation

XSLCompiler::XSLCompiler ( const std::string &  _xslScriptFileName,
FormatterListener::eFormat  _format,
const std::string &  _outputEncoding,
const std::string &  _schemaURI,
const std::string &  _emptyResult = "",
XSLParseErrorHandlerPtr  _xslParseErrorHandler = XSLParseErrorHandlerPtr(new XSLParseErrorHandler) 
) throw (Error)

Constructor.

XSLCompiler::~XSLCompiler ( void   )  [virtual]

Destructor.

Definition at line 56 of file xslCompiler.cpp.

References compiledStyleSheet, and theXalanTransformer.

00057 {
00058   theXalanTransformer.destroyStylesheet( compiledStyleSheet );
00059 }


Member Function Documentation

virtual void XSLCompiler::translate ( std::istream &  inputStream,
std::ostream &  outputStream 
) const throw (Error) [virtual]

Implements Compiler.

Referenced by cli().

void XSLCompiler::setEmptyResult ( const std::string &  _emptyResult  )  [inline]

Definition at line 58 of file xslCompiler.hpp.

References emptyResult.

00059     { emptyResult = _emptyResult; }

void XSLCompiler::setParseErrorHandler ( XSLParseErrorHandlerPtr  _xslParseErrorHandler  )  [inline]

Definition at line 61 of file xslCompiler.hpp.

References xslParseErrorHandler.

00062     { xslParseErrorHandler = _xslParseErrorHandler; }

void XSLCompiler::setParam ( const std::string &  name,
const std::string &  value 
)

Referenced by cli().

bool XSLCompiler::clearParam ( const std::string &  name  ) 


Field Documentation

std::string XSLCompiler::xslScriptFileName [protected]

Definition at line 69 of file xslCompiler.hpp.

FormatterListener::eFormat XSLCompiler::format [protected]

Definition at line 71 of file xslCompiler.hpp.

XalanTransformer XSLCompiler::theXalanTransformer [protected]

Definition at line 73 of file xslCompiler.hpp.

Referenced by ~XSLCompiler().

const XalanCompiledStylesheet* XSLCompiler::compiledStyleSheet [protected]

Definition at line 75 of file xslCompiler.hpp.

Referenced by ~XSLCompiler().

std::string XSLCompiler::outputEncoding [protected]

Definition at line 77 of file xslCompiler.hpp.

std::string XSLCompiler::schemaURI [protected]

Definition at line 79 of file xslCompiler.hpp.

std::string XSLCompiler::emptyResult [protected]

Definition at line 81 of file xslCompiler.hpp.

Referenced by setEmptyResult().

std::map< std::string , std::string > XSLCompiler::params [protected]

Definition at line 83 of file xslCompiler.hpp.

XSLParseErrorHandlerPtr XSLCompiler::xslParseErrorHandler [protected]

Definition at line 85 of file xslCompiler.hpp.

Referenced by setParseErrorHandler().


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

anymeal 0.30 - recipe management software - Make the most of your food! - © Jan Wedekind Sun Sep 14 16:01:30 2008 - GNU Free Documentation License