2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qxmlstream.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
2024-09-14 22:29:05 +00:00
|
|
|
"runtime"
|
2024-08-25 04:08:24 +00:00
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QXmlStreamReader__TokenType int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QXmlStreamReader__NoToken QXmlStreamReader__TokenType = 0
|
|
|
|
QXmlStreamReader__Invalid QXmlStreamReader__TokenType = 1
|
|
|
|
QXmlStreamReader__StartDocument QXmlStreamReader__TokenType = 2
|
|
|
|
QXmlStreamReader__EndDocument QXmlStreamReader__TokenType = 3
|
|
|
|
QXmlStreamReader__StartElement QXmlStreamReader__TokenType = 4
|
|
|
|
QXmlStreamReader__EndElement QXmlStreamReader__TokenType = 5
|
|
|
|
QXmlStreamReader__Characters QXmlStreamReader__TokenType = 6
|
|
|
|
QXmlStreamReader__Comment QXmlStreamReader__TokenType = 7
|
|
|
|
QXmlStreamReader__DTD QXmlStreamReader__TokenType = 8
|
|
|
|
QXmlStreamReader__EntityReference QXmlStreamReader__TokenType = 9
|
|
|
|
QXmlStreamReader__ProcessingInstruction QXmlStreamReader__TokenType = 10
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QXmlStreamReader__ReadElementTextBehaviour int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QXmlStreamReader__ErrorOnUnexpectedElement QXmlStreamReader__ReadElementTextBehaviour = 0
|
|
|
|
QXmlStreamReader__IncludeChildElements QXmlStreamReader__ReadElementTextBehaviour = 1
|
|
|
|
QXmlStreamReader__SkipChildElements QXmlStreamReader__ReadElementTextBehaviour = 2
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QXmlStreamReader__Error int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QXmlStreamReader__NoError QXmlStreamReader__Error = 0
|
|
|
|
QXmlStreamReader__UnexpectedElementError QXmlStreamReader__Error = 1
|
|
|
|
QXmlStreamReader__CustomError QXmlStreamReader__Error = 2
|
|
|
|
QXmlStreamReader__NotWellFormedError QXmlStreamReader__Error = 3
|
|
|
|
QXmlStreamReader__PrematureEndOfDocumentError QXmlStreamReader__Error = 4
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QXmlStreamStringRef struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QXmlStreamStringRef
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamStringRef) cPointer() *C.QXmlStreamStringRef {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QXmlStreamStringRef) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQXmlStreamStringRef constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQXmlStreamStringRef(h *C.QXmlStreamStringRef) *QXmlStreamStringRef {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QXmlStreamStringRef{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQXmlStreamStringRef constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQXmlStreamStringRef(h unsafe.Pointer) *QXmlStreamStringRef {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQXmlStreamStringRef((*C.QXmlStreamStringRef)(h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamStringRef constructs a new QXmlStreamStringRef object.
|
|
|
|
func NewQXmlStreamStringRef() *QXmlStreamStringRef {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamStringRef(C.QXmlStreamStringRef_new())
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamStringRef2 constructs a new QXmlStreamStringRef object.
|
|
|
|
func NewQXmlStreamStringRef2(aString string) *QXmlStreamStringRef {
|
2024-10-18 23:53:33 +00:00
|
|
|
aString_ms := C.struct_miqt_string{}
|
|
|
|
aString_ms.data = C.CString(aString)
|
|
|
|
aString_ms.len = C.size_t(len(aString))
|
|
|
|
defer C.free(unsafe.Pointer(aString_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamStringRef(C.QXmlStreamStringRef_new2(aString_ms))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamStringRef3 constructs a new QXmlStreamStringRef object.
|
|
|
|
func NewQXmlStreamStringRef3(other *QXmlStreamStringRef) *QXmlStreamStringRef {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamStringRef(C.QXmlStreamStringRef_new3(other.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamStringRef) OperatorAssign(other *QXmlStreamStringRef) {
|
|
|
|
C.QXmlStreamStringRef_OperatorAssign(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamStringRef) Swap(other *QXmlStreamStringRef) {
|
|
|
|
C.QXmlStreamStringRef_Swap(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamStringRef) Clear() {
|
|
|
|
C.QXmlStreamStringRef_Clear(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamStringRef) String() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QXmlStreamStringRef_String(this.h)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamStringRef) Position() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QXmlStreamStringRef_Position(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamStringRef) Size() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QXmlStreamStringRef_Size(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QXmlStreamStringRef) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QXmlStreamStringRef_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QXmlStreamStringRef) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QXmlStreamStringRef) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QXmlStreamAttribute struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QXmlStreamAttribute
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamAttribute) cPointer() *C.QXmlStreamAttribute {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QXmlStreamAttribute) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQXmlStreamAttribute constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQXmlStreamAttribute(h *C.QXmlStreamAttribute) *QXmlStreamAttribute {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QXmlStreamAttribute{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQXmlStreamAttribute constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQXmlStreamAttribute(h unsafe.Pointer) *QXmlStreamAttribute {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQXmlStreamAttribute((*C.QXmlStreamAttribute)(h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamAttribute constructs a new QXmlStreamAttribute object.
|
|
|
|
func NewQXmlStreamAttribute() *QXmlStreamAttribute {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamAttribute(C.QXmlStreamAttribute_new())
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamAttribute2 constructs a new QXmlStreamAttribute object.
|
|
|
|
func NewQXmlStreamAttribute2(qualifiedName string, value string) *QXmlStreamAttribute {
|
2024-10-18 23:53:33 +00:00
|
|
|
qualifiedName_ms := C.struct_miqt_string{}
|
|
|
|
qualifiedName_ms.data = C.CString(qualifiedName)
|
|
|
|
qualifiedName_ms.len = C.size_t(len(qualifiedName))
|
|
|
|
defer C.free(unsafe.Pointer(qualifiedName_ms.data))
|
|
|
|
value_ms := C.struct_miqt_string{}
|
|
|
|
value_ms.data = C.CString(value)
|
|
|
|
value_ms.len = C.size_t(len(value))
|
|
|
|
defer C.free(unsafe.Pointer(value_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamAttribute(C.QXmlStreamAttribute_new2(qualifiedName_ms, value_ms))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamAttribute3 constructs a new QXmlStreamAttribute object.
|
|
|
|
func NewQXmlStreamAttribute3(namespaceUri string, name string, value string) *QXmlStreamAttribute {
|
2024-10-18 23:53:33 +00:00
|
|
|
namespaceUri_ms := C.struct_miqt_string{}
|
|
|
|
namespaceUri_ms.data = C.CString(namespaceUri)
|
|
|
|
namespaceUri_ms.len = C.size_t(len(namespaceUri))
|
|
|
|
defer C.free(unsafe.Pointer(namespaceUri_ms.data))
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
|
|
|
value_ms := C.struct_miqt_string{}
|
|
|
|
value_ms.data = C.CString(value)
|
|
|
|
value_ms.len = C.size_t(len(value))
|
|
|
|
defer C.free(unsafe.Pointer(value_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamAttribute(C.QXmlStreamAttribute_new3(namespaceUri_ms, name_ms, value_ms))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamAttribute4 constructs a new QXmlStreamAttribute object.
|
|
|
|
func NewQXmlStreamAttribute4(param1 *QXmlStreamAttribute) *QXmlStreamAttribute {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamAttribute(C.QXmlStreamAttribute_new4(param1.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamAttribute) OperatorAssign(param1 *QXmlStreamAttribute) {
|
|
|
|
C.QXmlStreamAttribute_OperatorAssign(this.h, param1.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamAttribute) IsDefault() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamAttribute_IsDefault(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamAttribute) OperatorEqual(other *QXmlStreamAttribute) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamAttribute_OperatorEqual(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamAttribute) OperatorNotEqual(other *QXmlStreamAttribute) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamAttribute_OperatorNotEqual(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QXmlStreamAttribute) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QXmlStreamAttribute_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QXmlStreamAttribute) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QXmlStreamAttribute) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QXmlStreamNamespaceDeclaration struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QXmlStreamNamespaceDeclaration
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamNamespaceDeclaration) cPointer() *C.QXmlStreamNamespaceDeclaration {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QXmlStreamNamespaceDeclaration) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQXmlStreamNamespaceDeclaration constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQXmlStreamNamespaceDeclaration(h *C.QXmlStreamNamespaceDeclaration) *QXmlStreamNamespaceDeclaration {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QXmlStreamNamespaceDeclaration{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQXmlStreamNamespaceDeclaration constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQXmlStreamNamespaceDeclaration(h unsafe.Pointer) *QXmlStreamNamespaceDeclaration {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQXmlStreamNamespaceDeclaration((*C.QXmlStreamNamespaceDeclaration)(h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamNamespaceDeclaration constructs a new QXmlStreamNamespaceDeclaration object.
|
|
|
|
func NewQXmlStreamNamespaceDeclaration() *QXmlStreamNamespaceDeclaration {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamNamespaceDeclaration(C.QXmlStreamNamespaceDeclaration_new())
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamNamespaceDeclaration2 constructs a new QXmlStreamNamespaceDeclaration object.
|
|
|
|
func NewQXmlStreamNamespaceDeclaration2(prefix string, namespaceUri string) *QXmlStreamNamespaceDeclaration {
|
2024-10-18 23:53:33 +00:00
|
|
|
prefix_ms := C.struct_miqt_string{}
|
|
|
|
prefix_ms.data = C.CString(prefix)
|
|
|
|
prefix_ms.len = C.size_t(len(prefix))
|
|
|
|
defer C.free(unsafe.Pointer(prefix_ms.data))
|
|
|
|
namespaceUri_ms := C.struct_miqt_string{}
|
|
|
|
namespaceUri_ms.data = C.CString(namespaceUri)
|
|
|
|
namespaceUri_ms.len = C.size_t(len(namespaceUri))
|
|
|
|
defer C.free(unsafe.Pointer(namespaceUri_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamNamespaceDeclaration(C.QXmlStreamNamespaceDeclaration_new2(prefix_ms, namespaceUri_ms))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamNamespaceDeclaration3 constructs a new QXmlStreamNamespaceDeclaration object.
|
|
|
|
func NewQXmlStreamNamespaceDeclaration3(param1 *QXmlStreamNamespaceDeclaration) *QXmlStreamNamespaceDeclaration {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamNamespaceDeclaration(C.QXmlStreamNamespaceDeclaration_new3(param1.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamNamespaceDeclaration) OperatorAssign(param1 *QXmlStreamNamespaceDeclaration) {
|
|
|
|
C.QXmlStreamNamespaceDeclaration_OperatorAssign(this.h, param1.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamNamespaceDeclaration) OperatorEqual(other *QXmlStreamNamespaceDeclaration) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamNamespaceDeclaration_OperatorEqual(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamNamespaceDeclaration) OperatorNotEqual(other *QXmlStreamNamespaceDeclaration) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamNamespaceDeclaration_OperatorNotEqual(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QXmlStreamNamespaceDeclaration) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QXmlStreamNamespaceDeclaration_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QXmlStreamNamespaceDeclaration) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QXmlStreamNamespaceDeclaration) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QXmlStreamNotationDeclaration struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QXmlStreamNotationDeclaration
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamNotationDeclaration) cPointer() *C.QXmlStreamNotationDeclaration {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QXmlStreamNotationDeclaration) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQXmlStreamNotationDeclaration constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQXmlStreamNotationDeclaration(h *C.QXmlStreamNotationDeclaration) *QXmlStreamNotationDeclaration {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QXmlStreamNotationDeclaration{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQXmlStreamNotationDeclaration constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQXmlStreamNotationDeclaration(h unsafe.Pointer) *QXmlStreamNotationDeclaration {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQXmlStreamNotationDeclaration((*C.QXmlStreamNotationDeclaration)(h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamNotationDeclaration constructs a new QXmlStreamNotationDeclaration object.
|
|
|
|
func NewQXmlStreamNotationDeclaration() *QXmlStreamNotationDeclaration {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamNotationDeclaration(C.QXmlStreamNotationDeclaration_new())
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamNotationDeclaration2 constructs a new QXmlStreamNotationDeclaration object.
|
|
|
|
func NewQXmlStreamNotationDeclaration2(param1 *QXmlStreamNotationDeclaration) *QXmlStreamNotationDeclaration {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamNotationDeclaration(C.QXmlStreamNotationDeclaration_new2(param1.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamNotationDeclaration) OperatorAssign(param1 *QXmlStreamNotationDeclaration) {
|
|
|
|
C.QXmlStreamNotationDeclaration_OperatorAssign(this.h, param1.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamNotationDeclaration) OperatorEqual(other *QXmlStreamNotationDeclaration) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamNotationDeclaration_OperatorEqual(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamNotationDeclaration) OperatorNotEqual(other *QXmlStreamNotationDeclaration) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamNotationDeclaration_OperatorNotEqual(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QXmlStreamNotationDeclaration) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QXmlStreamNotationDeclaration_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QXmlStreamNotationDeclaration) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QXmlStreamNotationDeclaration) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QXmlStreamEntityDeclaration struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QXmlStreamEntityDeclaration
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamEntityDeclaration) cPointer() *C.QXmlStreamEntityDeclaration {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QXmlStreamEntityDeclaration) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQXmlStreamEntityDeclaration constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQXmlStreamEntityDeclaration(h *C.QXmlStreamEntityDeclaration) *QXmlStreamEntityDeclaration {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QXmlStreamEntityDeclaration{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQXmlStreamEntityDeclaration constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQXmlStreamEntityDeclaration(h unsafe.Pointer) *QXmlStreamEntityDeclaration {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQXmlStreamEntityDeclaration((*C.QXmlStreamEntityDeclaration)(h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamEntityDeclaration constructs a new QXmlStreamEntityDeclaration object.
|
|
|
|
func NewQXmlStreamEntityDeclaration() *QXmlStreamEntityDeclaration {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamEntityDeclaration(C.QXmlStreamEntityDeclaration_new())
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamEntityDeclaration2 constructs a new QXmlStreamEntityDeclaration object.
|
|
|
|
func NewQXmlStreamEntityDeclaration2(param1 *QXmlStreamEntityDeclaration) *QXmlStreamEntityDeclaration {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamEntityDeclaration(C.QXmlStreamEntityDeclaration_new2(param1.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamEntityDeclaration) OperatorAssign(param1 *QXmlStreamEntityDeclaration) {
|
|
|
|
C.QXmlStreamEntityDeclaration_OperatorAssign(this.h, param1.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamEntityDeclaration) OperatorEqual(other *QXmlStreamEntityDeclaration) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamEntityDeclaration_OperatorEqual(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamEntityDeclaration) OperatorNotEqual(other *QXmlStreamEntityDeclaration) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamEntityDeclaration_OperatorNotEqual(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QXmlStreamEntityDeclaration) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QXmlStreamEntityDeclaration_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QXmlStreamEntityDeclaration) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QXmlStreamEntityDeclaration) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QXmlStreamEntityResolver struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QXmlStreamEntityResolver
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamEntityResolver) cPointer() *C.QXmlStreamEntityResolver {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QXmlStreamEntityResolver) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQXmlStreamEntityResolver constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQXmlStreamEntityResolver(h *C.QXmlStreamEntityResolver) *QXmlStreamEntityResolver {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QXmlStreamEntityResolver{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQXmlStreamEntityResolver constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQXmlStreamEntityResolver(h unsafe.Pointer) *QXmlStreamEntityResolver {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQXmlStreamEntityResolver((*C.QXmlStreamEntityResolver)(h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamEntityResolver) ResolveEntity(publicId string, systemId string) string {
|
2024-10-18 23:53:33 +00:00
|
|
|
publicId_ms := C.struct_miqt_string{}
|
|
|
|
publicId_ms.data = C.CString(publicId)
|
|
|
|
publicId_ms.len = C.size_t(len(publicId))
|
|
|
|
defer C.free(unsafe.Pointer(publicId_ms.data))
|
|
|
|
systemId_ms := C.struct_miqt_string{}
|
|
|
|
systemId_ms.data = C.CString(systemId)
|
|
|
|
systemId_ms.len = C.size_t(len(systemId))
|
|
|
|
defer C.free(unsafe.Pointer(systemId_ms.data))
|
|
|
|
var _ms C.struct_miqt_string = C.QXmlStreamEntityResolver_ResolveEntity(this.h, publicId_ms, systemId_ms)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamEntityResolver) ResolveUndeclaredEntity(name string) string {
|
2024-10-18 23:53:33 +00:00
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
|
|
|
var _ms C.struct_miqt_string = C.QXmlStreamEntityResolver_ResolveUndeclaredEntity(this.h, name_ms)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QXmlStreamEntityResolver) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QXmlStreamEntityResolver_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QXmlStreamEntityResolver) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QXmlStreamEntityResolver) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QXmlStreamReader struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QXmlStreamReader
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) cPointer() *C.QXmlStreamReader {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QXmlStreamReader) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQXmlStreamReader constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQXmlStreamReader(h *C.QXmlStreamReader) *QXmlStreamReader {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QXmlStreamReader{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQXmlStreamReader constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQXmlStreamReader(h unsafe.Pointer) *QXmlStreamReader {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQXmlStreamReader((*C.QXmlStreamReader)(h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamReader constructs a new QXmlStreamReader object.
|
|
|
|
func NewQXmlStreamReader() *QXmlStreamReader {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamReader(C.QXmlStreamReader_new())
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamReader2 constructs a new QXmlStreamReader object.
|
|
|
|
func NewQXmlStreamReader2(device *QIODevice) *QXmlStreamReader {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamReader(C.QXmlStreamReader_new2(device.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamReader3 constructs a new QXmlStreamReader object.
|
2024-10-18 23:53:33 +00:00
|
|
|
func NewQXmlStreamReader3(data []byte) *QXmlStreamReader {
|
|
|
|
data_alias := C.struct_miqt_string{}
|
|
|
|
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
|
|
|
data_alias.len = C.size_t(len(data))
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamReader(C.QXmlStreamReader_new3(data_alias))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamReader4 constructs a new QXmlStreamReader object.
|
|
|
|
func NewQXmlStreamReader4(data string) *QXmlStreamReader {
|
2024-10-18 23:53:33 +00:00
|
|
|
data_ms := C.struct_miqt_string{}
|
|
|
|
data_ms.data = C.CString(data)
|
|
|
|
data_ms.len = C.size_t(len(data))
|
|
|
|
defer C.free(unsafe.Pointer(data_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamReader(C.QXmlStreamReader_new4(data_ms))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamReader5 constructs a new QXmlStreamReader object.
|
|
|
|
func NewQXmlStreamReader5(data string) *QXmlStreamReader {
|
|
|
|
data_Cstring := C.CString(data)
|
|
|
|
defer C.free(unsafe.Pointer(data_Cstring))
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamReader(C.QXmlStreamReader_new5(data_Cstring))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) SetDevice(device *QIODevice) {
|
|
|
|
C.QXmlStreamReader_SetDevice(this.h, device.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) Device() *QIODevice {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQIODevice(C.QXmlStreamReader_Device(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
func (this *QXmlStreamReader) AddData(data []byte) {
|
|
|
|
data_alias := C.struct_miqt_string{}
|
|
|
|
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
|
|
|
data_alias.len = C.size_t(len(data))
|
|
|
|
C.QXmlStreamReader_AddData(this.h, data_alias)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) AddDataWithData(data string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
data_ms := C.struct_miqt_string{}
|
|
|
|
data_ms.data = C.CString(data)
|
|
|
|
data_ms.len = C.size_t(len(data))
|
|
|
|
defer C.free(unsafe.Pointer(data_ms.data))
|
|
|
|
C.QXmlStreamReader_AddDataWithData(this.h, data_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) AddData2(data string) {
|
|
|
|
data_Cstring := C.CString(data)
|
|
|
|
defer C.free(unsafe.Pointer(data_Cstring))
|
|
|
|
C.QXmlStreamReader_AddData2(this.h, data_Cstring)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) Clear() {
|
|
|
|
C.QXmlStreamReader_Clear(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) AtEnd() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_AtEnd(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QXmlStreamReader) ReadNext() QXmlStreamReader__TokenType {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QXmlStreamReader__TokenType)(C.QXmlStreamReader_ReadNext(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QXmlStreamReader) ReadNextStartElement() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_ReadNextStartElement(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) SkipCurrentElement() {
|
|
|
|
C.QXmlStreamReader_SkipCurrentElement(this.h)
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QXmlStreamReader) TokenType() QXmlStreamReader__TokenType {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QXmlStreamReader__TokenType)(C.QXmlStreamReader_TokenType(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QXmlStreamReader) TokenString() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QXmlStreamReader_TokenString(this.h)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) SetNamespaceProcessing(namespaceProcessing bool) {
|
|
|
|
C.QXmlStreamReader_SetNamespaceProcessing(this.h, (C.bool)(namespaceProcessing))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) NamespaceProcessing() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_NamespaceProcessing(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) IsStartDocument() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_IsStartDocument(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) IsEndDocument() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_IsEndDocument(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) IsStartElement() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_IsStartElement(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) IsEndElement() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_IsEndElement(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) IsCharacters() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_IsCharacters(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) IsWhitespace() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_IsWhitespace(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) IsCDATA() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_IsCDATA(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) IsComment() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_IsComment(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) IsDTD() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_IsDTD(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) IsEntityReference() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_IsEntityReference(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) IsProcessingInstruction() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_IsProcessingInstruction(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) IsStandaloneDocument() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_IsStandaloneDocument(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) LineNumber() int64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int64)(C.QXmlStreamReader_LineNumber(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) ColumnNumber() int64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int64)(C.QXmlStreamReader_ColumnNumber(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) CharacterOffset() int64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int64)(C.QXmlStreamReader_CharacterOffset(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QXmlStreamReader) ReadElementText() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QXmlStreamReader_ReadElementText(this.h)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) NamespaceDeclarations() []QXmlStreamNamespaceDeclaration {
|
2024-11-04 07:18:27 +00:00
|
|
|
var _ma C.struct_miqt_array = C.QXmlStreamReader_NamespaceDeclarations(this.h)
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := make([]QXmlStreamNamespaceDeclaration, int(_ma.len))
|
2024-09-17 07:30:27 +00:00
|
|
|
_outCast := (*[0xffff]*C.QXmlStreamNamespaceDeclaration)(unsafe.Pointer(_ma.data)) // hey ya
|
2024-09-14 22:29:05 +00:00
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
2024-12-07 02:02:06 +00:00
|
|
|
_vv_goptr := newQXmlStreamNamespaceDeclaration(_outCast[i])
|
2024-09-17 07:30:27 +00:00
|
|
|
_vv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
_ret[i] = *_vv_goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QXmlStreamReader) AddExtraNamespaceDeclaration(extraNamespaceDeclaraction *QXmlStreamNamespaceDeclaration) {
|
|
|
|
C.QXmlStreamReader_AddExtraNamespaceDeclaration(this.h, extraNamespaceDeclaraction.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QXmlStreamReader) AddExtraNamespaceDeclarations(extraNamespaceDeclaractions []QXmlStreamNamespaceDeclaration) {
|
2024-09-01 05:51:28 +00:00
|
|
|
extraNamespaceDeclaractions_CArray := (*[0xffff]*C.QXmlStreamNamespaceDeclaration)(C.malloc(C.size_t(8 * len(extraNamespaceDeclaractions))))
|
2024-08-29 07:01:51 +00:00
|
|
|
defer C.free(unsafe.Pointer(extraNamespaceDeclaractions_CArray))
|
|
|
|
for i := range extraNamespaceDeclaractions {
|
|
|
|
extraNamespaceDeclaractions_CArray[i] = extraNamespaceDeclaractions[i].cPointer()
|
|
|
|
}
|
2024-11-04 07:18:27 +00:00
|
|
|
extraNamespaceDeclaractions_ma := C.struct_miqt_array{len: C.size_t(len(extraNamespaceDeclaractions)), data: unsafe.Pointer(extraNamespaceDeclaractions_CArray)}
|
2024-09-14 22:29:05 +00:00
|
|
|
C.QXmlStreamReader_AddExtraNamespaceDeclarations(this.h, extraNamespaceDeclaractions_ma)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) NotationDeclarations() []QXmlStreamNotationDeclaration {
|
2024-11-04 07:18:27 +00:00
|
|
|
var _ma C.struct_miqt_array = C.QXmlStreamReader_NotationDeclarations(this.h)
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := make([]QXmlStreamNotationDeclaration, int(_ma.len))
|
2024-09-17 07:30:27 +00:00
|
|
|
_outCast := (*[0xffff]*C.QXmlStreamNotationDeclaration)(unsafe.Pointer(_ma.data)) // hey ya
|
2024-09-14 22:29:05 +00:00
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
2024-12-07 02:02:06 +00:00
|
|
|
_vv_goptr := newQXmlStreamNotationDeclaration(_outCast[i])
|
2024-09-17 07:30:27 +00:00
|
|
|
_vv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
_ret[i] = *_vv_goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) EntityDeclarations() []QXmlStreamEntityDeclaration {
|
2024-11-04 07:18:27 +00:00
|
|
|
var _ma C.struct_miqt_array = C.QXmlStreamReader_EntityDeclarations(this.h)
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := make([]QXmlStreamEntityDeclaration, int(_ma.len))
|
2024-09-17 07:30:27 +00:00
|
|
|
_outCast := (*[0xffff]*C.QXmlStreamEntityDeclaration)(unsafe.Pointer(_ma.data)) // hey ya
|
2024-09-14 22:29:05 +00:00
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
2024-12-07 02:02:06 +00:00
|
|
|
_vv_goptr := newQXmlStreamEntityDeclaration(_outCast[i])
|
2024-09-17 07:30:27 +00:00
|
|
|
_vv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
_ret[i] = *_vv_goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QXmlStreamReader) EntityExpansionLimit() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QXmlStreamReader_EntityExpansionLimit(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) SetEntityExpansionLimit(limit int) {
|
|
|
|
C.QXmlStreamReader_SetEntityExpansionLimit(this.h, (C.int)(limit))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) RaiseError() {
|
|
|
|
C.QXmlStreamReader_RaiseError(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) ErrorString() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QXmlStreamReader_ErrorString(this.h)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QXmlStreamReader) Error() QXmlStreamReader__Error {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QXmlStreamReader__Error)(C.QXmlStreamReader_Error(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QXmlStreamReader) HasError() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamReader_HasError(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) SetEntityResolver(resolver *QXmlStreamEntityResolver) {
|
|
|
|
C.QXmlStreamReader_SetEntityResolver(this.h, resolver.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamReader) EntityResolver() *QXmlStreamEntityResolver {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQXmlStreamEntityResolver(C.QXmlStreamReader_EntityResolver(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QXmlStreamReader) ReadElementText1(behaviour QXmlStreamReader__ReadElementTextBehaviour) string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QXmlStreamReader_ReadElementText1(this.h, (C.int)(behaviour))
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QXmlStreamReader) RaiseError1(message string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
message_ms := C.struct_miqt_string{}
|
|
|
|
message_ms.data = C.CString(message)
|
|
|
|
message_ms.len = C.size_t(len(message))
|
|
|
|
defer C.free(unsafe.Pointer(message_ms.data))
|
|
|
|
C.QXmlStreamReader_RaiseError1(this.h, message_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QXmlStreamReader) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QXmlStreamReader_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QXmlStreamReader) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QXmlStreamReader) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QXmlStreamWriter struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QXmlStreamWriter
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) cPointer() *C.QXmlStreamWriter {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QXmlStreamWriter) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQXmlStreamWriter constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQXmlStreamWriter(h *C.QXmlStreamWriter) *QXmlStreamWriter {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QXmlStreamWriter{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQXmlStreamWriter constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQXmlStreamWriter(h unsafe.Pointer) *QXmlStreamWriter {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQXmlStreamWriter((*C.QXmlStreamWriter)(h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamWriter constructs a new QXmlStreamWriter object.
|
|
|
|
func NewQXmlStreamWriter() *QXmlStreamWriter {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamWriter(C.QXmlStreamWriter_new())
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQXmlStreamWriter2 constructs a new QXmlStreamWriter object.
|
|
|
|
func NewQXmlStreamWriter2(device *QIODevice) *QXmlStreamWriter {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQXmlStreamWriter(C.QXmlStreamWriter_new2(device.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) SetDevice(device *QIODevice) {
|
|
|
|
C.QXmlStreamWriter_SetDevice(this.h, device.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) Device() *QIODevice {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQIODevice(C.QXmlStreamWriter_Device(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) SetCodec(codec *QTextCodec) {
|
|
|
|
C.QXmlStreamWriter_SetCodec(this.h, codec.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) SetCodecWithCodecName(codecName string) {
|
|
|
|
codecName_Cstring := C.CString(codecName)
|
|
|
|
defer C.free(unsafe.Pointer(codecName_Cstring))
|
|
|
|
C.QXmlStreamWriter_SetCodecWithCodecName(this.h, codecName_Cstring)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) Codec() *QTextCodec {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTextCodec(C.QXmlStreamWriter_Codec(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) SetAutoFormatting(autoFormatting bool) {
|
|
|
|
C.QXmlStreamWriter_SetAutoFormatting(this.h, (C.bool)(autoFormatting))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) AutoFormatting() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamWriter_AutoFormatting(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) SetAutoFormattingIndent(spacesOrTabs int) {
|
|
|
|
C.QXmlStreamWriter_SetAutoFormattingIndent(this.h, (C.int)(spacesOrTabs))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) AutoFormattingIndent() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QXmlStreamWriter_AutoFormattingIndent(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteAttribute(qualifiedName string, value string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
qualifiedName_ms := C.struct_miqt_string{}
|
|
|
|
qualifiedName_ms.data = C.CString(qualifiedName)
|
|
|
|
qualifiedName_ms.len = C.size_t(len(qualifiedName))
|
|
|
|
defer C.free(unsafe.Pointer(qualifiedName_ms.data))
|
|
|
|
value_ms := C.struct_miqt_string{}
|
|
|
|
value_ms.data = C.CString(value)
|
|
|
|
value_ms.len = C.size_t(len(value))
|
|
|
|
defer C.free(unsafe.Pointer(value_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteAttribute(this.h, qualifiedName_ms, value_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteAttribute2(namespaceUri string, name string, value string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
namespaceUri_ms := C.struct_miqt_string{}
|
|
|
|
namespaceUri_ms.data = C.CString(namespaceUri)
|
|
|
|
namespaceUri_ms.len = C.size_t(len(namespaceUri))
|
|
|
|
defer C.free(unsafe.Pointer(namespaceUri_ms.data))
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
|
|
|
value_ms := C.struct_miqt_string{}
|
|
|
|
value_ms.data = C.CString(value)
|
|
|
|
value_ms.len = C.size_t(len(value))
|
|
|
|
defer C.free(unsafe.Pointer(value_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteAttribute2(this.h, namespaceUri_ms, name_ms, value_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteAttributeWithAttribute(attribute *QXmlStreamAttribute) {
|
|
|
|
C.QXmlStreamWriter_WriteAttributeWithAttribute(this.h, attribute.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteCDATA(text string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteCDATA(this.h, text_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteCharacters(text string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteCharacters(this.h, text_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteComment(text string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteComment(this.h, text_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteDTD(dtd string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
dtd_ms := C.struct_miqt_string{}
|
|
|
|
dtd_ms.data = C.CString(dtd)
|
|
|
|
dtd_ms.len = C.size_t(len(dtd))
|
|
|
|
defer C.free(unsafe.Pointer(dtd_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteDTD(this.h, dtd_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteEmptyElement(qualifiedName string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
qualifiedName_ms := C.struct_miqt_string{}
|
|
|
|
qualifiedName_ms.data = C.CString(qualifiedName)
|
|
|
|
qualifiedName_ms.len = C.size_t(len(qualifiedName))
|
|
|
|
defer C.free(unsafe.Pointer(qualifiedName_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteEmptyElement(this.h, qualifiedName_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteEmptyElement2(namespaceUri string, name string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
namespaceUri_ms := C.struct_miqt_string{}
|
|
|
|
namespaceUri_ms.data = C.CString(namespaceUri)
|
|
|
|
namespaceUri_ms.len = C.size_t(len(namespaceUri))
|
|
|
|
defer C.free(unsafe.Pointer(namespaceUri_ms.data))
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteEmptyElement2(this.h, namespaceUri_ms, name_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteTextElement(qualifiedName string, text string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
qualifiedName_ms := C.struct_miqt_string{}
|
|
|
|
qualifiedName_ms.data = C.CString(qualifiedName)
|
|
|
|
qualifiedName_ms.len = C.size_t(len(qualifiedName))
|
|
|
|
defer C.free(unsafe.Pointer(qualifiedName_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteTextElement(this.h, qualifiedName_ms, text_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteTextElement2(namespaceUri string, name string, text string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
namespaceUri_ms := C.struct_miqt_string{}
|
|
|
|
namespaceUri_ms.data = C.CString(namespaceUri)
|
|
|
|
namespaceUri_ms.len = C.size_t(len(namespaceUri))
|
|
|
|
defer C.free(unsafe.Pointer(namespaceUri_ms.data))
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteTextElement2(this.h, namespaceUri_ms, name_ms, text_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteEndDocument() {
|
|
|
|
C.QXmlStreamWriter_WriteEndDocument(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteEndElement() {
|
|
|
|
C.QXmlStreamWriter_WriteEndElement(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteEntityReference(name string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteEntityReference(this.h, name_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteNamespace(namespaceUri string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
namespaceUri_ms := C.struct_miqt_string{}
|
|
|
|
namespaceUri_ms.data = C.CString(namespaceUri)
|
|
|
|
namespaceUri_ms.len = C.size_t(len(namespaceUri))
|
|
|
|
defer C.free(unsafe.Pointer(namespaceUri_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteNamespace(this.h, namespaceUri_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteDefaultNamespace(namespaceUri string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
namespaceUri_ms := C.struct_miqt_string{}
|
|
|
|
namespaceUri_ms.data = C.CString(namespaceUri)
|
|
|
|
namespaceUri_ms.len = C.size_t(len(namespaceUri))
|
|
|
|
defer C.free(unsafe.Pointer(namespaceUri_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteDefaultNamespace(this.h, namespaceUri_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteProcessingInstruction(target string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
target_ms := C.struct_miqt_string{}
|
|
|
|
target_ms.data = C.CString(target)
|
|
|
|
target_ms.len = C.size_t(len(target))
|
|
|
|
defer C.free(unsafe.Pointer(target_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteProcessingInstruction(this.h, target_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteStartDocument() {
|
|
|
|
C.QXmlStreamWriter_WriteStartDocument(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteStartDocumentWithVersion(version string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
version_ms := C.struct_miqt_string{}
|
|
|
|
version_ms.data = C.CString(version)
|
|
|
|
version_ms.len = C.size_t(len(version))
|
|
|
|
defer C.free(unsafe.Pointer(version_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteStartDocumentWithVersion(this.h, version_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteStartDocument2(version string, standalone bool) {
|
2024-10-18 23:53:33 +00:00
|
|
|
version_ms := C.struct_miqt_string{}
|
|
|
|
version_ms.data = C.CString(version)
|
|
|
|
version_ms.len = C.size_t(len(version))
|
|
|
|
defer C.free(unsafe.Pointer(version_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteStartDocument2(this.h, version_ms, (C.bool)(standalone))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteStartElement(qualifiedName string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
qualifiedName_ms := C.struct_miqt_string{}
|
|
|
|
qualifiedName_ms.data = C.CString(qualifiedName)
|
|
|
|
qualifiedName_ms.len = C.size_t(len(qualifiedName))
|
|
|
|
defer C.free(unsafe.Pointer(qualifiedName_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteStartElement(this.h, qualifiedName_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteStartElement2(namespaceUri string, name string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
namespaceUri_ms := C.struct_miqt_string{}
|
|
|
|
namespaceUri_ms.data = C.CString(namespaceUri)
|
|
|
|
namespaceUri_ms.len = C.size_t(len(namespaceUri))
|
|
|
|
defer C.free(unsafe.Pointer(namespaceUri_ms.data))
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteStartElement2(this.h, namespaceUri_ms, name_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteCurrentToken(reader *QXmlStreamReader) {
|
|
|
|
C.QXmlStreamWriter_WriteCurrentToken(this.h, reader.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) HasError() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QXmlStreamWriter_HasError(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteNamespace2(namespaceUri string, prefix string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
namespaceUri_ms := C.struct_miqt_string{}
|
|
|
|
namespaceUri_ms.data = C.CString(namespaceUri)
|
|
|
|
namespaceUri_ms.len = C.size_t(len(namespaceUri))
|
|
|
|
defer C.free(unsafe.Pointer(namespaceUri_ms.data))
|
|
|
|
prefix_ms := C.struct_miqt_string{}
|
|
|
|
prefix_ms.data = C.CString(prefix)
|
|
|
|
prefix_ms.len = C.size_t(len(prefix))
|
|
|
|
defer C.free(unsafe.Pointer(prefix_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteNamespace2(this.h, namespaceUri_ms, prefix_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QXmlStreamWriter) WriteProcessingInstruction2(target string, data string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
target_ms := C.struct_miqt_string{}
|
|
|
|
target_ms.data = C.CString(target)
|
|
|
|
target_ms.len = C.size_t(len(target))
|
|
|
|
defer C.free(unsafe.Pointer(target_ms.data))
|
|
|
|
data_ms := C.struct_miqt_string{}
|
|
|
|
data_ms.data = C.CString(data)
|
|
|
|
data_ms.len = C.size_t(len(data))
|
|
|
|
defer C.free(unsafe.Pointer(data_ms.data))
|
|
|
|
C.QXmlStreamWriter_WriteProcessingInstruction2(this.h, target_ms, data_ms)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QXmlStreamWriter) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QXmlStreamWriter_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QXmlStreamWriter) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QXmlStreamWriter) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|