QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
Macros | Variables
qgsdbquerylog_p.h File Reference
#include "qgsconfig.h"
Include dependency graph for qgsdbquerylog_p.h:

Go to the source code of this file.

Macros

#define QGS_QUERY_LOG_ORIGIN   QString(QString( __FILE__ ).mid( sQueryLoggerFilePrefixLength ) + ':' + QString::number( __LINE__ ) + " (" + ( __FUNCTION__ ) + ")")
 
#define QgsSetQueryLogClass(entry, _class)   ( entry ).initiatorClass = _class; ( entry ).origin = QString(QString( __FILE__ ).mid( sQueryLoggerFilePrefixLength ) + ':' + QString::number( __LINE__ ) + " (" + __FUNCTION__ + ")");
 

Variables

constexpr int sQueryLoggerFilePrefixLength = CMAKE_SOURCE_DIR[sizeof( CMAKE_SOURCE_DIR ) - 1] == '/' ? sizeof( CMAKE_SOURCE_DIR ) + 1 : sizeof( CMAKE_SOURCE_DIR )
 

Macro Definition Documentation

◆ QGS_QUERY_LOG_ORIGIN

#define QGS_QUERY_LOG_ORIGIN   QString(QString( __FILE__ ).mid( sQueryLoggerFilePrefixLength ) + ':' + QString::number( __LINE__ ) + " (" + ( __FUNCTION__ ) + ")")

Definition at line 22 of file qgsdbquerylog_p.h.

◆ QgsSetQueryLogClass

#define QgsSetQueryLogClass (   entry,
  _class 
)    ( entry ).initiatorClass = _class; ( entry ).origin = QString(QString( __FILE__ ).mid( sQueryLoggerFilePrefixLength ) + ':' + QString::number( __LINE__ ) + " (" + __FUNCTION__ + ")");

Definition at line 21 of file qgsdbquerylog_p.h.

Variable Documentation

◆ sQueryLoggerFilePrefixLength

constexpr int sQueryLoggerFilePrefixLength = CMAKE_SOURCE_DIR[sizeof( CMAKE_SOURCE_DIR ) - 1] == '/' ? sizeof( CMAKE_SOURCE_DIR ) + 1 : sizeof( CMAKE_SOURCE_DIR )
constexpr

Definition at line 20 of file qgsdbquerylog_p.h.