public:
~QXmlSimpleReaderPrivate();
private:
- // functions
QXmlSimpleReaderPrivate(QXmlSimpleReader *reader);
+
+ // functions
void initIncrementalParsing();
// used to determine if elements are correctly nested
void pushParseState(ParseFunction function, int state);
bool isExpandedEntityValueTooLarge(QString *errorMessage);
- Q_DECLARE_PUBLIC(QXmlSimpleReader)
- QXmlSimpleReader *q_ptr;
-
+ friend class QXmlSimpleReader;
friend class QXmlSimpleReaderLocator;
};
QXmlParseException::QXmlParseException(const QXmlParseException& other) :
d(new QXmlParseExceptionPrivate(*other.d))
{
-
}
/*!
Constructs a QXmlNamespaceSupport.
*/
QXmlNamespaceSupport::QXmlNamespaceSupport()
+ : d(new QXmlNamespaceSupportPrivate())
{
- d = new QXmlNamespaceSupportPrivate;
}
/*!
}
QXmlSimpleReaderPrivate::QXmlSimpleReaderPrivate(QXmlSimpleReader *reader)
+ : useNamespaces(true),
+ useNamespacePrefixes(false),
+ reportWhitespaceCharData(true),
+ reportEntities(false),
+ locator(new QXmlSimpleReaderLocator(reader)),
+ parseStack(Q_NULLPTR),
+ contentHnd(Q_NULLPTR),
+ errorHnd(Q_NULLPTR),
+ dtdHnd(Q_NULLPTR),
+ entityRes(Q_NULLPTR),
+ lexicalHnd(Q_NULLPTR),
+ declHnd(Q_NULLPTR),
+ inputSource(Q_NULLPTR)
{
- q_ptr = reader;
- parseStack = Q_NULLPTR;
-
- locator = new QXmlSimpleReaderLocator(reader);
- entityRes = 0;
- dtdHnd = 0;
- contentHnd = 0;
- errorHnd = 0;
- lexicalHnd = 0;
- declHnd = 0;
-
- // default feature settings
- useNamespaces = true;
- useNamespacePrefixes = false;
- reportWhitespaceCharData = true;
- reportEntities = false;
}
QXmlSimpleReaderPrivate::~QXmlSimpleReaderPrivate()
*/
QXmlEntityResolver* QXmlSimpleReader::entityResolver() const
{
- const QXmlSimpleReaderPrivate *d = d_func();
- return d->entityRes;
+ return d_func()->entityRes;
}
/*!
*/
QXmlDTDHandler* QXmlSimpleReader::DTDHandler() const
{
- const QXmlSimpleReaderPrivate *d = d_func();
- return d->dtdHnd;
+ return d_func()->dtdHnd;
}
/*!