Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qmetatypesjsonprocessor.cpp File Reference

(2fc45188c9344ee54205ffc34401c05cdc678c07)

#include "qmetatypesjsonprocessor_p.h"
#include "qanystringviewutils_p.h"
#include "qqmltyperegistrarconstants_p.h"
#include "qqmltyperegistrarutils_p.h"
#include "qqmltypesclassdescription_p.h"
#include <QtCore/qcborarray.h>
#include <QtCore/qcbormap.h>
#include <QtCore/qfile.h>
#include <QtCore/qjsondocument.h>
#include <QtCore/qqueue.h>
+ Include dependency graph for qmetatypesjsonprocessor.cpp:

Go to the source code of this file.

Functions

static QCborValue fromJson (const QByteArray &json, QJsonParseError *error)
 
template<typename String >
static void sortStringList (QList< String > *list)
 
static size_t qHash (QAnyStringView string, size_t seed=0)
 
static bool qualifiedClassNameLessThan (const MetaType &a, const MetaType &b)
 
static QTypeRevision getRevision (const QCborMap &cbor)
 
static Access getAccess (const QCborMap &cbor)
 

Variables

std::vector< std::unique_ptr< MetaTypePrivate > > s_pool
 

Function Documentation

◆ fromJson()

static QCborValue fromJson ( const QByteArray & json,
QJsonParseError * error )
static

Definition at line 31 of file qmetatypesjsonprocessor.cpp.

References error, QJsonDocument::fromJson(), QCborValue::fromJsonValue(), and QCborValue().

Referenced by MetaTypesJsonProcessor::processForeignTypes(), and MetaTypesJsonProcessor::processTypes().

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

◆ getAccess()

static Access getAccess ( const QCborMap & cbor)
static

Definition at line 705 of file qmetatypesjsonprocessor.cpp.

References Private, Protected, Public, Constants::MetatypesDotJson::S_ACCESS, Constants::MetatypesDotJson::S_PROTECTED, Constants::MetatypesDotJson::S_PUBLIC, and QAnyStringViewUtils::toStringView().

+ Here is the call graph for this function:

◆ getRevision()

static QTypeRevision getRevision ( const QCborMap & cbor)
static

Definition at line 697 of file qmetatypesjsonprocessor.cpp.

References QCborMap::end(), QCborMap::find(), QTypeRevision::fromEncodedVersion(), it, and Constants::MetatypesDotJson::S_REVISION.

+ Here is the call graph for this function:

◆ qHash()

static size_t qHash ( QAnyStringView string,
size_t seed = 0 )
static

Definition at line 283 of file qmetatypesjsonprocessor.cpp.

References qHash(), seed, and view.

Referenced by qHash().

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

◆ qualifiedClassNameLessThan()

static bool qualifiedClassNameLessThan ( const MetaType & a,
const MetaType & b )
static

Definition at line 295 of file qmetatypesjsonprocessor.cpp.

◆ sortStringList()

template<typename String >
static void sortStringList ( QList< String > * list)
static

Definition at line 139 of file qmetatypesjsonprocessor.cpp.

References QList< T >::begin(), QList< T >::constEnd(), QList< T >::end(), QList< T >::erase(), and list.

Referenced by MetaTypesJsonProcessor::postProcessForeignTypes().

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

Variable Documentation

◆ s_pool

std::vector<std::unique_ptr<MetaTypePrivate> > s_pool

Definition at line 29 of file qmetatypesjsonprocessor.cpp.