XSLTransTree.hpp
Go to the documentation of this file.
#ifndef UI_GXML_XSLTRANSTREE_HPP
#define UI_GXML_XSLTRANSTREE_HPP
// STDC++
#include <string>
// C++ Libraries
#include <ui-utilcpp/Text.hpp>
#include <ui-gxmlcpp/Tree.hpp>
#include <ui-gxmlcpp/XSLTree.hpp>
// Include compat w/o warnings or changing external UI_GXMLCPP_IGNORE_DEPRECATED
#ifdef UI_GXMLCPP_IGNORE_DEPRECATED
#include <ui-gxmlcpp/XMLTree.hpp>
#else
#define UI_GXMLCPP_IGNORE_DEPRECATED
#include <ui-gxmlcpp/XMLTree.hpp>
#undef UI_GXMLCPP_IGNORE_DEPRECATED
#endif
namespace UI {
namespace GXML {
class XSLTransTree: public Tree
{
public:
enum ErrorCode
{
Mem_ = 0,
Apply_
};
typedef CodeException<ErrorCode> Exception;
class Params: private UI::Util::CStrArray
{
public:
Params & add(std::string const & name, std::string const & value);
using CStrArray::get;
};
XSLTransTree(XSLTree const & xslTree, Tree const & tree, Params const & params=Params());
XSLTransTree(XSLTree const & style, XMLTree const * const tree, Params const & params=Params());
std::string getOutputEncoding() const;
class Dump
{
public:
Dump(XSLTransTree const & xslTransTree);
~Dump();
std::string getEncoding() const;
char const * getC() const;
std::string get() const;
int getSize() const;
private:
XSLTransTree const * const xslTransTree_;
xmlChar * buf_;
int size_;
};
protected:
xsltStylesheet * getStylesheet() const;
private:
XSLTree const * const xslTree_;
};
}}
#endif
Tree.hpp
XSLTree.hpp
UI::GXML::CodeException
Adding code facility to Exception.
Definition Exception.hpp:35
UI::GXML::Tree::Tree
Tree()
Protected default constructor.
Definition Tree.cpp:74
UI::GXML::Tree::XMLTree
friend class XMLTree
Compat only.
Definition Tree.hpp:77
UI::GXML::XSLTransTree::Dump::getEncoding
std::string getEncoding() const
See XSLTree::getOutputEncoding().
Definition XSLTransTree.cpp:103
UI::GXML::XSLTransTree::Dump::Dump
Dump(XSLTransTree const &xslTransTree)
Constructor.
Definition XSLTransTree.cpp:66
UI::GXML::XSLTransTree::Params
Parameter abstraction for xsl translations.
Definition XSLTransTree.hpp:49
UI::GXML::XSLTransTree::Params::add
Params & add(std::string const &name, std::string const &value)
Add a named parameter.
Definition XSLTransTree.cpp:31
UI::GXML::XSLTransTree::getOutputEncoding
std::string getOutputEncoding() const
See XSLTree::getOutputEncoding().
Definition XSLTransTree.cpp:61
UI::GXML::XSLTransTree::Exception
CodeException< ErrorCode > Exception
Exceptions for this class.
Definition XSLTransTree.hpp:45
UI::GXML::XSLTransTree::ErrorCode
ErrorCode
Error codes for exceptions.
Definition XSLTransTree.hpp:40
UI::GXML::XSLTransTree::XSLTransTree
XSLTransTree(XSLTree const &xslTree, Tree const &tree, Params const &params=Params())
Constructor.
Definition XSLTransTree.cpp:38
UI::GXML::XSLTree
XSL (stylesheet) Tree.
Definition XSLTree.hpp:28
UI::GXML
Namespace for library project "ui-gxmlcpp".
Definition Buffer.cpp:31
UI
Namespace for all Schlund+Partner Code.
Definition Buffer.cpp:30