Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QTest::Internal::QCborValueFormatter Struct Reference

#include <qtest.h>

+ Collaboration diagram for QTest::Internal::QCborValueFormatter:

Public Types

enum  { BufferLen = 256 }
 

Static Public Member Functions

static char * formatSimpleType (QCborSimpleType st)
 
static char * formatTag (QCborTag tag, const QCborValue &taggedValue)
 
static char * innerFormat (QCborValue::Type t, const char *str)
 
template<typename T >
static char * format (QCborValue::Type type, const T &t)
 
static char * format (const QCborValue &v)
 
static char * format (const QCborArray &a)
 
static char * format (const QCborMap &m)
 

Detailed Description

Definition at line 224 of file qtest.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
BufferLen 

Definition at line 226 of file qtest.h.

Member Function Documentation

◆ format() [1/4]

static char * QTest::Internal::QCborValueFormatter::format ( const QCborArray a)
inlinestatic

Definition at line 306 of file qtest.h.

References out, and qstrdup().

+ Here is the call graph for this function:

◆ format() [2/4]

static char * QTest::Internal::QCborValueFormatter::format ( const QCborMap m)
inlinestatic

Definition at line 320 of file qtest.h.

References out, and qstrdup().

+ Here is the call graph for this function:

◆ format() [3/4]

static char * QTest::Internal::QCborValueFormatter::format ( const QCborValue v)
inlinestatic

◆ format() [4/4]

template<typename T >
static char * QTest::Internal::QCborValueFormatter::format ( QCborValue::Type  type,
const T &  t 
)
inlinestatic

Definition at line 258 of file qtest.h.

References QScopedPointer< T, Cleanup >::get(), innerFormat(), and QTest::toString().

Referenced by QTest::toString(), QTest::toString(), and QTest::toString().

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

◆ formatSimpleType()

static char * QTest::Internal::QCborValueFormatter::formatSimpleType ( QCborSimpleType  st)
inlinestatic

Definition at line 227 of file qtest.h.

References BufferLen, and qsnprintf().

Referenced by format().

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

◆ formatTag()

static char * QTest::Internal::QCborValueFormatter::formatTag ( QCborTag  tag,
const QCborValue taggedValue 
)
inlinestatic

Definition at line 234 of file qtest.h.

References BufferLen, QScopedPointer< T, Cleanup >::get(), qsnprintf(), and tag.

Referenced by format().

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

◆ innerFormat()

static char * QTest::Internal::QCborValueFormatter::innerFormat ( QCborValue::Type  t,
const char *  str 
)
inlinestatic

Definition at line 242 of file qtest.h.

References BufferLen, qsnprintf(), str, typeName, and QMetaEnum::valueToKey().

Referenced by format(), and format().

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

The documentation for this struct was generated from the following file: