QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
3
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
qgsspatialiteutils.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsspatialiteutils.h
3
-------------------
4
begin : Nov, 2017
5
copyright : (C) 2017 by Matthias Kuhn
6
email : matthias@opengis.ch
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSSPATIALITEUTILS_H
19
#define QGSSPATIALITEUTILS_H
20
21
#define SIP_NO_FILE
22
23
#include "qgis_core.h"
24
#include "
qgssqliteutils.h
"
25
#include <functional>
26
34
struct
CORE_EXPORT
QgsSpatialiteCloser
35
{
36
40
void
operator()(
sqlite3
*database );
41
45
void
*mSpatialiteContext =
nullptr
;
46
};
47
56
class
CORE_EXPORT
spatialite_database_unique_ptr
:
public
std::unique_ptr
< sqlite3, QgsSpatialiteCloser>
57
{
58
public
:
59
65
int
open(
const
QString &path );
66
70
void
reset();
71
79
void
reset
(
sqlite3
*handle ) =
delete
;
80
86
int
open_v2(
const
QString &path,
int
flags,
const
char
*zVfs );
87
91
QString errorMessage()
const
;
92
97
sqlite3_statement_unique_ptr
prepare(
const
QString &sql,
int
&resultCode );
98
};
99
100
#endif // QGSSPATIALITEUTILS_H
sqlite3
struct sqlite3 sqlite3
Definition:
qgscoordinatereferencesystem.h:55
geos::unique_ptr
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.
Definition:
qgsgeos.h:79
QgsSpatialiteCloser
Closes a spatialite database.
Definition:
qgsspatialiteutils.h:35
spatialite_database_unique_ptr
Unique pointer for spatialite databases, which automatically closes the database when the pointer goe...
Definition:
qgsspatialiteutils.h:57
spatialite_database_unique_ptr::reset
void reset(sqlite3 *handle)=delete
It is not allowed to set an arbitrary sqlite3 handle on this object.
qgssqliteutils.h
sqlite3_statement_unique_ptr
Unique pointer for sqlite3 prepared statements, which automatically finalizes the statement when the ...
Definition:
qgssqliteutils.h:70
Generated on Sat Oct 24 2020 17:43:09 for QGIS API Documentation by
1.8.20