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
collectjson.cpp File Reference

(aa37e67ef7f5ff22da0ef95fb5221bc1fff9b3ca)

#include <qfile.h>
#include <qjsonarray.h>
#include <qjsondocument.h>
#include <qjsonobject.h>
#include <qhashfunctions.h>
#include <qstringlist.h>
#include <cstdlib>
+ Include dependency graph for collectjson.cpp:

Go to the source code of this file.

Functions

static bool readFromDevice (QIODevice *device, QJsonArray *allMetaObjects)
 
int collectJson (const QStringList &jsonFiles, const QString &outputFile, bool skipStdIn)
 

Function Documentation

◆ collectJson()

int collectJson ( const QStringList & jsonFiles,
const QString & outputFile,
bool skipStdIn )

Definition at line 29 of file collectjson.cpp.

References output, outputFile, qPrintable, readFromDevice(), QIODeviceBase::ReadOnly, QHashSeed::setDeterministicGlobalSeed(), QJsonDocument::toJson(), and QIODeviceBase::WriteOnly.

Referenced by runMoc().

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

◆ readFromDevice()

static bool readFromDevice ( QIODevice * device,
QJsonArray * allMetaObjects )
static

Definition at line 12 of file collectjson.cpp.

References contents, device, error, QJsonDocument::fromJson(), QJsonParseError::NoError, and QJsonDocument::object().

Referenced by collectJson(), executeOperation(), and QIODevicePrivate::read().

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