![]() |
Qt 6.x
The Qt SDK
|
#include <qqmljsstreamwriter_p.h>
Collaboration diagram for QQmlJSStreamWriter:Public Member Functions | |
| QQmlJSStreamWriter (QByteArray *array) | |
| void | writeStartDocument () |
| void | writeEndDocument () |
| void | writeLibraryImport (QByteArrayView uri, int majorVersion, int minorVersion, QByteArrayView as={}) |
| void | writeStartObject (QByteArrayView component) |
| void | writeEndObject () |
| void | writeScriptBinding (QByteArrayView name, QByteArrayView rhs) |
| void | writeStringBinding (QByteArrayView name, QAnyStringView value) |
| void | writeNumberBinding (QByteArrayView name, qint64 value) |
| void | writeEnumObjectLiteralBinding (QByteArrayView name, const QList< QPair< QAnyStringView, int > > &keyValue) |
| void | writeArrayBinding (QByteArrayView name, const QByteArrayList &elements) |
| void | writeStringListBinding (QByteArrayView name, const QList< QAnyStringView > &elements) |
| void | write (QByteArrayView data) |
| void | writeBooleanBinding (QByteArrayView name, bool value) |
Definition at line 25 of file qqmljsstreamwriter_p.h.
| QQmlJSStreamWriter::QQmlJSStreamWriter | ( | QByteArray * | array | ) |
Definition at line 38 of file qqmljsstreamwriter.cpp.
References QIODevice::open(), and QIODeviceBase::WriteOnly.
Here is the call graph for this function:| void QQmlJSStreamWriter::write | ( | QByteArrayView | data | ) |
Definition at line 188 of file qqmljsstreamwriter.cpp.
References QIODevice::write().
Referenced by QmlTypesCreator::generate().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQmlJSStreamWriter::writeArrayBinding | ( | QByteArrayView | name, |
| const QByteArrayList & | elements | ||
| ) |
Definition at line 177 of file qqmljsstreamwriter.cpp.
| void QQmlJSStreamWriter::writeBooleanBinding | ( | QByteArrayView | name, |
| bool | value | ||
| ) |
Definition at line 128 of file qqmljsstreamwriter.cpp.
References writeScriptBinding().
Here is the call graph for this function:| void QQmlJSStreamWriter::writeEndDocument | ( | ) |
Definition at line 51 of file qqmljsstreamwriter.cpp.
| void QQmlJSStreamWriter::writeEndObject | ( | ) |
Definition at line 81 of file qqmljsstreamwriter.cpp.
References QList< T >::at(), QList< T >::clear(), i, QList< T >::isEmpty(), QList< T >::size(), QByteArray::trimmed(), and QIODevice::write().
Referenced by QmlTypesCreator::generate().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQmlJSStreamWriter::writeEnumObjectLiteralBinding | ( | QByteArrayView | name, |
| const QList< QPair< QAnyStringView, int > > & | keyValue | ||
| ) |
Definition at line 194 of file qqmljsstreamwriter.cpp.
References enquoteAnyString(), i, QByteArray::number(), and QIODevice::write().
Here is the call graph for this function:| void QQmlJSStreamWriter::writeLibraryImport | ( | QByteArrayView | uri, |
| int | majorVersion, | ||
| int | minorVersion, | ||
| QByteArrayView | as = {} |
||
| ) |
Definition at line 55 of file qqmljsstreamwriter.cpp.
References QByteArrayView::data(), QByteArrayView::isEmpty(), QByteArrayView::length(), QByteArray::number(), and QIODevice::write().
Referenced by QmlTypesCreator::generate().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQmlJSStreamWriter::writeNumberBinding | ( | QByteArrayView | name, |
| qint64 | value | ||
| ) |
Definition at line 123 of file qqmljsstreamwriter.cpp.
References QByteArray::number(), and writeScriptBinding().
Here is the call graph for this function:| void QQmlJSStreamWriter::writeScriptBinding | ( | QByteArrayView | name, |
| QByteArrayView | rhs | ||
| ) |
Definition at line 108 of file qqmljsstreamwriter.cpp.
References QByteArrayView::length().
Referenced by writeBooleanBinding(), writeNumberBinding(), and writeStringBinding().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQmlJSStreamWriter::writeStartDocument | ( | ) |
Definition at line 47 of file qqmljsstreamwriter.cpp.
Referenced by QmlTypesCreator::generate().
Here is the caller graph for this function:| void QQmlJSStreamWriter::writeStartObject | ( | QByteArrayView | component | ) |
Definition at line 71 of file qqmljsstreamwriter.cpp.
References component(), and QIODevice::write().
Referenced by QmlTypesCreator::generate().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQmlJSStreamWriter::writeStringBinding | ( | QByteArrayView | name, |
| QAnyStringView | value | ||
| ) |
Definition at line 118 of file qqmljsstreamwriter.cpp.
References enquoteAnyString(), and writeScriptBinding().
Here is the call graph for this function:| void QQmlJSStreamWriter::writeStringListBinding | ( | QByteArrayView | name, |
| const QList< QAnyStringView > & | elements | ||
| ) |
Definition at line 182 of file qqmljsstreamwriter.cpp.
References elements, and enquoteByteArray().
Here is the call graph for this function: