QXmlDTDHandler Class
QXmlDTDHandler 클래스는 XML 데이터의 DTD 내용을 보고하는 인터페이스를 제공합니다. 더 보기...
Header: | #include <QXmlDTDHandler> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core5Compat) target_link_libraries(mytarget PRIVATE Qt6::Core5Compat) |
qmake: | QT += core5compat |
상속 대상: |
참고: 이 클래스의 모든 함수는 재진입됩니다.
공용 함수
virtual | ~QXmlDTDHandler() |
virtual QString | errorString() const = 0 |
virtual bool | notationDecl(const QString &name, const QString &publicId, const QString &systemId) = 0 |
virtual bool | unparsedEntityDecl(const QString &name, const QString &publicId, const QString &systemId, const QString ¬ationName) = 0 |
자세한 설명
애플리케이션에서 표기법 및 구문 분석되지 않은 엔티티에 대한 정보가 필요한 경우 이 인터페이스를 구현하고 QXmlReader::setDTDHandler()에 인스턴스를 등록할 수 있습니다.
이 인터페이스에는 XML 권장 사항에서 프로세서가 보고해야 하는 DTD 이벤트, 즉 각각 notationDecl() 및 unparsedEntityDecl()를 사용하는 표기법과 구문 분석되지 않은 엔티티 선언만 포함됩니다.
QXmlDeclHandler, QXmlContentHandler, QXmlEntityResolver, QXmlErrorHandler, 및 QXmlLexicalHandler도 참조하십시오 .
멤버 함수 문서
[virtual noexcept]
QXmlDTDHandler::~QXmlDTDHandler()
DTD 핸들러를 삭제합니다.
[pure virtual]
QString QXmlDTDHandler::errorString() const
핸들러 함수 중 하나라도 false
를 반환하면 리더는 이 함수를 호출하여 오류 문자열을 가져옵니다.
[pure virtual]
bool QXmlDTDHandler::notationDecl(const QString &name, const QString &publicId, const QString &systemId)
리더는 표기법 선언을 파싱할 때 이 함수를 호출합니다.
name 인수는 표기법 이름, publicId 인수는 표기법의 공개 식별자, systemId 인수는 표기법의 시스템 식별자입니다.
이 함수가 false
을 반환하면 리더는 구문 분석을 중지하고 오류를 보고합니다. 리더는 errorString() 함수를 사용하여 오류 메시지를 가져옵니다.
[pure virtual]
bool QXmlDTDHandler::unparsedEntityDecl(const QString &name, const QString &publicId, const QString &systemId, const QString ¬ationName)
독자는 구문 분석되지 않은 엔티티 선언을 발견하면 이 함수를 호출합니다.
인수는 name 는 구문 분석되지 않은 엔티티의 이름, publicId 은 엔티티의 공개 식별자, systemId 는 엔티티의 시스템 식별자, notationName 은 연결된 표기법의 이름입니다.
이 함수가 false
을 반환하면 리더는 구문 분석을 중지하고 오류를 보고합니다. 리더는 errorString() 함수를 사용하여 오류 메시지를 가져옵니다.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.