<QtCborCommon>
The <QtCborCommon> header contains definitions common to both the streaming classes (QCborStreamReader and QCborStreamWriter) and to QCborValue. More...
Types
enum | QCborSimpleType { False, True, Null, Undefined } |
Type Documentation
enum QCborSimpleType
This enum contains the possible "Simple Types" for CBOR. Simple Types range from 0 to 255 and are types that carry no further value.
The following values are currently known:
Constant | Value | Description |
---|---|---|
False | ? | A "false" boolean. |
True | ? | A "true" boolean. |
Null | ? | Absence of value (null). |
Undefined | ? | Missing or deleted value, usually an error. |
Qt CBOR API supports encoding and decoding any Simple Type, whether one of those above or any other value.
Applications should only use further values if a corresponding specification has been published, otherwise interpretation and validation by the remote may fail. Values 24 to 31 are reserved and must not be used.
The current authoritative list is maintained by IANA in the Simple Values registry.
See also QCborStreamWriter::append(QCborSimpleType), QCborStreamReader::isSimpleType(), QCborStreamReader::toSimpleType(), QCborValue::isSimpleType(), and QCborValue::toSimpleType().