Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qcborcommon.h File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

#include <QtCore/qobjectdefs.h>
#include <QtCore/qmetatype.h>
#include <QtCore/qdebug.h>
+ Include dependency graph for qcborcommon.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QCborError
 \inmodule QtCore \inheaderfile QtCborCommon \reentrant More...
 

Enumerations

enum class  QCborSimpleType : quint8 { False = 20 , True = 21 , Null = 22 , Undefined = 23 }
 
enum class  QCborTag : quint64
 
enum class  QCborKnownTags {
  DateTimeString = 0 , UnixTime_t = 1 , PositiveBignum = 2 , NegativeBignum = 3 ,
  Decimal = 4 , Bigfloat = 5 , COSE_Encrypt0 = 16 , COSE_Mac0 = 17 ,
  COSE_Sign1 = 18 , ExpectedBase64url = 21 , ExpectedBase64 = 22 , ExpectedBase16 = 23 ,
  EncodedCbor = 24 , Url = 32 , Base64url = 33 , Base64 = 34 ,
  RegularExpression = 35 , MimeMessage = 36 , Uuid = 37 , COSE_Encrypt = 96 ,
  COSE_Mac = 97 , COSE_Sign = 98 , Signature = 55799
}
 
enum class  QCborNegativeInteger : quint64
 

Functions

bool operator== (QCborTag t, QCborKnownTags kt)
 
bool operator== (QCborKnownTags kt, QCborTag t)
 
bool operator!= (QCborTag t, QCborKnownTags kt)
 
bool operator!= (QCborKnownTags kt, QCborTag t)
 
Q_CORE_EXPORT QDebug operator<< (QDebug, QCborSimpleType st)
 
Q_CORE_EXPORT QDebug operator<< (QDebug, QCborKnownTags tg)
 
Q_CORE_EXPORT QDebug operator<< (QDebug, QCborTag tg)
 
Q_CORE_EXPORT QDataStreamoperator<< (QDataStream &ds, QCborSimpleType st)
 
Q_CORE_EXPORT QDataStreamoperator>> (QDataStream &ds, QCborSimpleType &st)
 
size_t qHash (QCborSimpleType tag, size_t seed=0)
 
size_t qHash (QCborTag tag, size_t seed=0)
 

Enumeration Type Documentation

◆ QCborKnownTags

enum class QCborKnownTags
strong
Enumerator
DateTimeString 
UnixTime_t 
PositiveBignum 
NegativeBignum 
Decimal 
Bigfloat 
COSE_Encrypt0 
COSE_Mac0 
COSE_Sign1 
ExpectedBase64url 
ExpectedBase64 
ExpectedBase16 
EncodedCbor 
Url 
Base64url 
Base64 
RegularExpression 
MimeMessage 
Uuid 
COSE_Encrypt 
COSE_Mac 
COSE_Sign 
Signature 

Definition at line 31 of file qcborcommon.h.

◆ QCborNegativeInteger

enum class QCborNegativeInteger : quint64
strong

Definition at line 114 of file qcborcommon.h.

◆ QCborSimpleType

enum class QCborSimpleType : quint8
strong
Enumerator
False 
True 
Null 
Undefined 

Definition at line 23 of file qcborcommon.h.

◆ QCborTag

enum class QCborTag : quint64
strong

Definition at line 30 of file qcborcommon.h.

Function Documentation

◆ operator!=() [1/2]

bool operator!= ( QCborKnownTags kt,
QCborTag t )
inline

Definition at line 60 of file qcborcommon.h.

◆ operator!=() [2/2]

bool operator!= ( QCborTag t,
QCborKnownTags kt )
inline

Definition at line 59 of file qcborcommon.h.

◆ operator<<() [1/4]

Q_CORE_EXPORT QDataStream & operator<< ( QDataStream & ds,
QCborSimpleType st )

Definition at line 58 of file qcborcommon.cpp.

◆ operator<<() [2/4]

Q_CORE_EXPORT QDebug operator<< ( QDebug dbg,
QCborKnownTags tg )

Definition at line 3350 of file qcborvalue.cpp.

References qt_cbor_tag_id(), and tag.

+ Here is the call graph for this function:

◆ operator<<() [3/4]

Q_CORE_EXPORT QDebug operator<< ( QDebug dbg,
QCborSimpleType st )

Definition at line 3327 of file qcborvalue.cpp.

References qt_cbor_simpletype_id().

+ Here is the call graph for this function:

◆ operator<<() [4/4]

Q_CORE_EXPORT QDebug operator<< ( QDebug dbg,
QCborTag tg )

Definition at line 3337 of file qcborvalue.cpp.

References qt_cbor_tag_id(), and tag.

+ Here is the call graph for this function:

◆ operator==() [1/2]

bool operator== ( QCborKnownTags kt,
QCborTag t )
inline

Definition at line 58 of file qcborcommon.h.

◆ operator==() [2/2]

bool operator== ( QCborTag t,
QCborKnownTags kt )
inline

Definition at line 57 of file qcborcommon.h.

◆ operator>>()

Q_CORE_EXPORT QDataStream & operator>> ( QDataStream & ds,
QCborSimpleType & st )

Definition at line 63 of file qcborcommon.cpp.

◆ qHash() [1/2]

size_t qHash ( QCborSimpleType tag,
size_t seed = 0 )
inline

Definition at line 104 of file qcborcommon.h.

References qHash(), seed, and tag.

Referenced by qHash(), and qHash().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qHash() [2/2]

size_t qHash ( QCborTag tag,
size_t seed = 0 )
inline

Definition at line 109 of file qcborcommon.h.

References qHash(), seed, and tag.

+ Here is the call graph for this function: