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
injabridge.h File Reference

(d89324ffe39397f535bd6f64c26514887ed3a7ba)

#include <QtCore/qglobal.h>
#include <inja/inja.hpp>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonValue>
#include <QString>
#include <functional>
#include <optional>
#include <variant>
Include dependency graph for injabridge.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  InjaBridge
 Adapter for converting Qt JSON types to Inja template engine format. More...
struct  InjaBridge::RenderContext
 Identifies the render a template error belongs to. More...
struct  InjaBridge::RenderFailure
 \variable InjaBridge::RenderContext::format More...

Macros

#define QDOC_TEMPLATE_LIBS_THROW   0
#define INJA_THROW(exception)
#define JSON_THROW_USER(exception)

Functions

QT_BEGIN_NAMESPACE void qdocFatalTemplateRenderError (const char *what)

Macro Definition Documentation

◆ INJA_THROW

#define INJA_THROW ( exception)
Value:
QT_PREPEND_NAMESPACE(qdocFatalTemplateRenderError)((exception).what())
void qdocFatalTemplateRenderError(const char *what)

Definition at line 23 of file injabridge.h.

◆ JSON_THROW_USER

#define JSON_THROW_USER ( exception)
Value:
QT_PREPEND_NAMESPACE(qdocFatalTemplateRenderError)((exception).what())

Definition at line 25 of file injabridge.h.

◆ QDOC_TEMPLATE_LIBS_THROW

#define QDOC_TEMPLATE_LIBS_THROW   0

Definition at line 13 of file injabridge.h.

Function Documentation

◆ qdocFatalTemplateRenderError()

QT_BEGIN_NAMESPACE void qdocFatalTemplateRenderError ( const char * what)

The error-reporting entry point for template library errors in a no-exceptions build. The header redefines INJA_THROW and JSON_THROW_USER, the error-reporting entry points of Inja and nlohmann::json, to this function before including the libraries, so a library error terminates the run with the diagnostic for the render in progress instead of a bare abort.

Definition at line 65 of file injabridge.cpp.