7#include <QtCore/qtypes.h>
12#define CBOR_API inline
13#define CBOR_PRIVATE_API inline
14#define CBOR_NO_PARSER_API 1
26 fprintf(out,
"\n // %s", comment);
32 auto data =
static_cast<
const char *>(ptr);
33 if (t == CborEncoderAppendCborData) {
35 that->putByte(*data++);
38 that->putChar(*data++);
53 void putByte(uint8_t c)
56 fprintf(out,
" 0x%02x, ", c);
63 fprintf(out,
" '\\x%x',", uint8_t(c));
64 else if (uchar(c) >= 0x7f)
65 fprintf(out,
" uchar('\\x%x'),", uint8_t(c));
66 else if (c ==
'\'' || c ==
'\\')
67 fprintf(out,
" '\\%c',", c);
69 fprintf(out,
" '%c', ", c);
static CborError callback(void *self, const void *ptr, size_t len, CborEncoderAppendType t)
void nextItem(const char *comment=nullptr)
qsizetype registeredStringsCount()
Generator(Moc *moc, ClassDef *classDef, const QList< QByteArray > &metaTypes, const QHash< QByteArray, QByteArray > &knownQObjectClasses, const QHash< QByteArray, QByteArray > &knownGadgets, FILE *outfile=nullptr, bool requireCompleteTypes=false)
bool requireCompleteMethodTypes