v2.0.0
Loading...
Searching...
No Matches
MNALIB::MnaRecording Struct Reference

#include <mna_recording.h>

Public Member Functions

QJsonObject toJson () const
QCborMap toCbor () const

Static Public Member Functions

static MnaRecording fromJson (const QJsonObject &json)
static MnaRecording fromCbor (const QCborMap &cbor)

Public Attributes

QString id
QList< MnaFileRef > files
QJsonObject extras

Detailed Description

Groups files belonging to one recording run.

Definition at line 62 of file mna_recording.h.

Member Function Documentation

◆ fromCbor()

MnaRecording MnaRecording::fromCbor ( const QCborMap & cbor)
static

Deserialize from QCborMap.

Parameters
[in]cborCBOR map as produced by toCbor().
Returns
The recording; missing keys take default values and unknown keys go to extras.

Definition at line 93 of file mna_recording.cpp.

◆ fromJson()

MnaRecording MnaRecording::fromJson ( const QJsonObject & json)
static

Deserialize from QJsonObject.

Parameters
[in]jsonJSON object as produced by toJson().
Returns
The recording; missing keys take default values and unknown keys go to extras.

Definition at line 55 of file mna_recording.cpp.

◆ toCbor()

QCborMap MnaRecording::toCbor ( ) const

Serialize to QCborMap.

Returns
CBOR map with the recording id, its file references and preserved extras.

Definition at line 77 of file mna_recording.cpp.

◆ toJson()

QJsonObject MnaRecording::toJson ( ) const

Serialize to QJsonObject.

Returns
JSON object with the recording id, its file references and preserved extras.

Definition at line 39 of file mna_recording.cpp.

Member Data Documentation

◆ extras

QJsonObject MNALIB::MnaRecording::extras

Unknown keys preserved for lossless round-trip.

Definition at line 66 of file mna_recording.h.

◆ files

QList<MnaFileRef> MNALIB::MnaRecording::files

Files belonging to this recording.

Definition at line 65 of file mna_recording.h.

◆ id

QString MNALIB::MnaRecording::id

Recording identifier.

Definition at line 64 of file mna_recording.h.


The documentation for this struct was generated from the following files: