QGIS API Documentation
4.0.0-Norrköping (1ddcee3d0e4)
Loading...
Searching...
No Matches
src
core
qgsdbquerylog_p.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsdbquerylog_p.h
3
------------
4
Date : February 2024
5
Copyright : (C) 2024 by Matthias Kuhn
6
Email :
[email protected]
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSDBQUERYLOG_P_H
17
#define QGSDBQUERYLOG_P_H
18
19
#include "qgsconfig.h"
20
21
constexpr
int
sQueryLoggerFilePrefixLength
= CMAKE_SOURCE_DIR[
sizeof
( CMAKE_SOURCE_DIR ) - 1] ==
'/'
?
sizeof
( CMAKE_SOURCE_DIR ) + 1 :
sizeof
( CMAKE_SOURCE_DIR );
22
#define QgsSetQueryLogClass( entry, _class ) \
23
( entry ).initiatorClass = _class; \
24
( entry ).origin = QString( QString( __FILE__ ).mid( sQueryLoggerFilePrefixLength ) + ':' + QString::number( __LINE__ ) + " (" + __FUNCTION__ + ")" );
25
#define QGS_QUERY_LOG_ORIGIN QString( QString( __FILE__ ).mid( sQueryLoggerFilePrefixLength ) + ':' + QString::number( __LINE__ ) + " (" + ( __FUNCTION__ ) + ")" )
26
27
#endif
// QGSDBQUERYLOG_P_H
sQueryLoggerFilePrefixLength
constexpr int sQueryLoggerFilePrefixLength
Definition
qgsdbquerylog_p.h:21
Generated on
for QGIS API Documentation by
1.15.0