QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
LogFormatter.h File Reference
#include <QtCore/QByteArray>
#include <QtCore/QJsonObject>
#include <QtCore/QList>
#include <QtCore/QString>
#include "LogEntry.h"
+ Include dependency graph for LogFormatter.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  LogFormatter
 

Enumerations

enum  LogFormatter::Format { LogFormatter::PlainText = 0 , LogFormatter::JSON = 1 , LogFormatter::CSV = 2 , LogFormatter::JSONLines = 3 }
 
enum  LogFormatter::JsonSchema { LogFormatter::ExportSchema , LogFormatter::RemoteCompactSchema }
 

Functions

QJsonObject LogFormatter::entryToJson (const LogEntry &e, JsonSchema schema)
 
QString LogFormatter::formatCsvRow (const LogEntry &entry)
 
QString LogFormatter::csvHeader ()
 
QByteArray LogFormatter::format (const QList< LogEntry > &entries, int fmt)
 
QByteArray LogFormatter::formatAsText (const QList< LogEntry > &entries)
 
QByteArray LogFormatter::formatAsJson (const QList< LogEntry > &entries)
 
QByteArray LogFormatter::formatAsCsv (const QList< LogEntry > &entries)
 
QByteArray LogFormatter::formatAsJsonLines (const QList< LogEntry > &entries)