Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
collectjson.cpp File Reference
#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 QString::isEmpty(), 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 QJsonArray::append(), 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: