|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include "JsonParsing.h"#include <limits>#include <QtCore/QObject>#include <QtCore/QJsonParseError>#include "QGCFileHelper.h"#include "QGCLoggingCategory.h"#include "QGCNetworkHelper.h"
Include dependency graph for JsonParsing.cc:Go to the source code of this file.
Namespaces | |
| namespace | JsonParsing |
Functions | |
| bool | JsonParsing::validateRequiredKeys (const QJsonObject &jsonObject, const QStringList &keys, QString &errorString) |
| Validates that all listed keys are present in the object. | |
| bool | JsonParsing::validateKeyTypes (const QJsonObject &jsonObject, const QStringList &keys, const QList< QJsonValue::Type > &types, QString &errorString) |
| bool | JsonParsing::isJsonFile (const QByteArray &bytes, QJsonDocument &jsonDoc, QString &errorString) |
| Determines whether an in-memory byte buffer contains parseable JSON content. | |
| bool | JsonParsing::isJsonFile (const QString &fileName, QJsonDocument &jsonDoc, QString &errorString) |
| Determines whether a file path contains parseable JSON content. | |
| double | JsonParsing::possibleNaNJsonValue (const QJsonValue &value) |
| Returns NaN if the value is null, or the value converted to double otherwise. | |