#include <jsonstreamwriter.h>
- Todo:
- write docs
Definition at line 38 of file jsonstreamwriter.h.
◆ JsonStreamWriter()
| pappso::cbor::JsonStreamWriter::JsonStreamWriter |
( |
QIODevice * |
device | ) |
|
◆ ~JsonStreamWriter()
| pappso::cbor::JsonStreamWriter::~JsonStreamWriter |
( |
| ) |
|
|
virtual |
◆ appendKey()
| void pappso::cbor::JsonStreamWriter::appendKey |
( |
const QString & |
key | ) |
|
◆ appendValue()
| void pappso::cbor::JsonStreamWriter::appendValue |
( |
const QString & |
value | ) |
|
◆ comma()
| void pappso::cbor::JsonStreamWriter::comma |
( |
| ) |
|
|
protected |
◆ endArray()
| void pappso::cbor::JsonStreamWriter::endArray |
( |
| ) |
|
◆ endMap()
| void pappso::cbor::JsonStreamWriter::endMap |
( |
| ) |
|
◆ startArray()
| void pappso::cbor::JsonStreamWriter::startArray |
( |
| ) |
|
◆ startMap()
| void pappso::cbor::JsonStreamWriter::startMap |
( |
| ) |
|
◆ writeArray()
| void pappso::cbor::JsonStreamWriter::writeArray |
( |
QStringList & |
str_list | ) |
|
Definition at line 112 of file jsonstreamwriter.cpp.
113{
114 *this << "[\"" << str_list.join("\", \"") << "\"]" << Qt::endl;
115}
◆ writeCborArray()
| void pappso::cbor::JsonStreamWriter::writeCborArray |
( |
const QCborArray & |
cbor_array | ) |
|
Definition at line 85 of file jsonstreamwriter.cpp.
86{
87 QJsonDocument doc;
88 doc.setArray(QCborValue(cbor_array).toJsonValue().toArray());
89
90 *this << doc.toJson();
91}
◆ writeCborMap()
| void pappso::cbor::JsonStreamWriter::writeCborMap |
( |
const QCborMap & |
cbor_map | ) |
|
Definition at line 76 of file jsonstreamwriter.cpp.
77{
78 QJsonDocument doc;
79 doc.setObject(QCborValue(cbor_map).toJsonValue().toObject());
80
81 *this << doc.toJson();
82}
◆ m_isStart
| bool pappso::cbor::JsonStreamWriter::m_isStart = true |
|
private |
◆ m_nextIsValue
| bool pappso::cbor::JsonStreamWriter::m_nextIsValue = false |
|
private |
The documentation for this class was generated from the following files: