Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qcborcommon.h File Reference

(00f3ca950a6cab105c95b53ce2b3b93282abcea8)

#include <QtCore/qobjectdefs.h>
#include <QtCore/qmetatype.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 32 of file qcborcommon.h.

◆ QCborNegativeInteger

enum class QCborNegativeInteger : quint64
strong

Definition at line 115 of file qcborcommon.h.

◆ QCborSimpleType

enum class QCborSimpleType : quint8
strong
Enumerator
False 
True 
Null 
Undefined 

Definition at line 24 of file qcborcommon.h.

◆ QCborTag

enum class QCborTag : quint64
strong

Definition at line 31 of file qcborcommon.h.

Function Documentation

◆ operator!=() [1/2]

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

Definition at line 61 of file qcborcommon.h.

◆ operator!=() [2/2]

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

Definition at line 60 of file qcborcommon.h.

◆ operator<<() [1/4]

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

Definition at line 58 of file qcborcommon.cpp.

◆ operator<<() [2/4]

QDebug operator<< ( QDebug dbg,
QCborKnownTags tg )

Definition at line 3403 of file qcborvalue.cpp.

◆ operator<<() [3/4]

QDebug operator<< ( QDebug dbg,
QCborSimpleType st )

Definition at line 3380 of file qcborvalue.cpp.

◆ operator<<() [4/4]

QDebug operator<< ( QDebug dbg,
QCborTag tg )

Definition at line 3390 of file qcborvalue.cpp.

◆ operator==() [1/2]

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

Definition at line 59 of file qcborcommon.h.

◆ operator==() [2/2]

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

Definition at line 58 of file qcborcommon.h.

◆ operator>>()

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 105 of file qcborcommon.h.

◆ qHash() [2/2]

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

Definition at line 110 of file qcborcommon.h.