Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
MetaTypesJsonProcessor Class Reference

#include <qmetatypesjsonprocessor_p.h>

+ Collaboration diagram for MetaTypesJsonProcessor:

Public Member Functions

 MetaTypesJsonProcessor (bool privateIncludes)
 
bool processTypes (const QStringList &files)
 
bool processForeignTypes (const QStringList &foreignTypesFiles)
 
void postProcessTypes ()
 
void postProcessForeignTypes ()
 
QVector< QCborMaptypes () const
 
QVector< QCborMapforeignTypes () const
 
QList< QAnyStringViewreferencedTypes () const
 
QList< QStringincludes () const
 
QString extractRegisteredTypes () const
 

Static Public Member Functions

static QList< QAnyStringViewnamespaces (const QCborMap &classDef)
 

Detailed Description

Definition at line 24 of file qmetatypesjsonprocessor_p.h.

Constructor & Destructor Documentation

◆ MetaTypesJsonProcessor()

MetaTypesJsonProcessor::MetaTypesJsonProcessor ( bool  privateIncludes)
inline

Definition at line 29 of file qmetatypesjsonprocessor_p.h.

Member Function Documentation

◆ extractRegisteredTypes()

QString MetaTypesJsonProcessor::extractRegisteredTypes ( ) const

◆ foreignTypes()

QVector< QCborMap > MetaTypesJsonProcessor::foreignTypes ( ) const
inline

Definition at line 38 of file qmetatypesjsonprocessor_p.h.

◆ includes()

QList< QString > MetaTypesJsonProcessor::includes ( ) const
inline

Definition at line 40 of file qmetatypesjsonprocessor_p.h.

Referenced by QmlTypeRegistrar::runExtract().

+ Here is the caller graph for this function:

◆ namespaces()

QList< QAnyStringView > MetaTypesJsonProcessor::namespaces ( const QCborMap classDef)
static

Definition at line 34 of file qmetatypesjsonprocessor.cpp.

References QList< T >::last(), namespaces(), QList< T >::pop_back(), Q_ASSERT, Constants::MetatypesDotJson::S_CLASS_NAME, Constants::MetatypesDotJson::S_QUALIFIED_CLASS_NAME, split(), and QAnyStringViewUtils::toStringView().

Referenced by QmlTypesClassDescription::collect(), namespaces(), and QmlTypeRegistrar::write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ postProcessForeignTypes()

void MetaTypesJsonProcessor::postProcessForeignTypes ( )

Definition at line 141 of file qmetatypesjsonprocessor.cpp.

References sortStringList().

+ Here is the call graph for this function:

◆ postProcessTypes()

void MetaTypesJsonProcessor::postProcessTypes ( )

Definition at line 135 of file qmetatypesjsonprocessor.cpp.

References sortStringList().

+ Here is the call graph for this function:

◆ processForeignTypes()

bool MetaTypesJsonProcessor::processForeignTypes ( const QStringList foreignTypesFiles)

Definition at line 91 of file qmetatypesjsonprocessor.cpp.

References error, fromJson(), metaObject(), QJsonParseError::NoError, QFile::open(), processForeignTypes(), qPrintable, QIODevice::readAll(), QIODeviceBase::ReadOnly, and QCborValue::toArray().

Referenced by processForeignTypes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ processTypes()

bool MetaTypesJsonProcessor::processTypes ( const QStringList files)

Definition at line 49 of file qmetatypesjsonprocessor.cpp.

References error, files, fromJson(), QCborValue::isArray(), QCborValue::isMap(), metaObject(), QJsonParseError::NoError, processTypes(), qPrintable, QIODeviceBase::ReadOnly, QCborValue::toArray(), and QCborValue::toMap().

Referenced by processTypes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ referencedTypes()

QList< QAnyStringView > MetaTypesJsonProcessor::referencedTypes ( ) const
inline

Definition at line 39 of file qmetatypesjsonprocessor_p.h.

◆ types()

QVector< QCborMap > MetaTypesJsonProcessor::types ( ) const
inline

Definition at line 37 of file qmetatypesjsonprocessor_p.h.

Referenced by QmlTypeRegistrar::runExtract().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: