Unicorn XML Toolkit
Version 1.00.00

Namespace SxpSax
Class CReaderFactory

class CReaderFactory: public Sax::CXmlReaderFactory {
public:
    CReaderFactory(const Sxp::XParserFactory &pFactory);
    ~CReaderFactory();
public:
    Sax::XXmlReader CreateXmlReader();
    Sax::XXmlReader CreateXmlReader(const CString &strClassName);
    };

The factory for SXP parser adapters.

The SXP parser adapter is an object that wraps an SXP parser and acts as a SAX2 XML reader.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
Sxp::IParserFactory, Sax::CXmlReader
Constructor/Destructor Summary
CReaderFactory (const Sxp::XParserFactory &pFactory);
����������Constructs the SXP adapter factory.
~CReaderFactory ();
����������Destroys the SXP adapter factory.

Function Summary
Sax::XXmlReader CreateXmlReader ();
����������Creates a new SXP adapter of the default class.
Sax::XXmlReader CreateXmlReader (const CString &strClassName);
����������Creates a new SXP adapter using the class name provided.

Constructor/Destructor Detail

CReaderFactory

CReaderFactory(const Sxp::XParserFactory &pFactory);

Constructs the SXP adapter factory.

The SXP parser factory must be supplied as an argument to the constructor. Each time the new SXP adapter is created, the SXP parser factory is used to create an underlying SXP parser.

Parameters:
pFactory - the SXP parser factory

~CReaderFactory

~CReaderFactory();

Destroys the SXP adapter factory.

Function Detail

CreateXmlReader

Sax::XXmlReader CreateXmlReader();

Creates a new SXP adapter of the default class.

Returns:
the newly created SXP adapter

CreateXmlReader

Sax::XXmlReader CreateXmlReader(const CString &strClassName);

Creates a new SXP adapter using the class name provided.

This feature is reserved for the future use. In the current release, calling this function will cause an assertion error.

Parameters:
strClassName - the class name
Returns:
the newly created SXP adapter

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.