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
qgsprojectversion.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprojectfile.h - description
3
-------------------
4
begin : Sun 15 dec 2007
5
copyright : (C) 2007 by Magnus Homann
6
email : magnus at homann.se
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 QGSPROJECTVERSION_H
19
#define QGSPROJECTVERSION_H
20
21
#include <QString>
22
#include <QStringList>
23
#include "qgis_core.h"
24
31
class
CORE_EXPORT
QgsProjectVersion
32
{
33
34
public
:
35
39
QgsProjectVersion
() =
default
;
40
44
QgsProjectVersion
(
int
major,
int
minor,
int
sub,
const
QString &name = QString() );
45
49
QgsProjectVersion
(
const
QString &
string
);
50
54
int
majorVersion
()
const
{
return
mMajor;}
55
59
int
minorVersion
()
const
{
return
mMinor;}
60
64
int
subVersion
()
const
{
return
mSub;}
65
69
QString text()
const
;
70
74
bool
isNull()
const
;
75
79
bool
operator==
(
const
QgsProjectVersion
&other )
const
;
80
84
bool
operator!=
(
const
QgsProjectVersion
&other )
const
;
85
89
bool
operator>=(
const
QgsProjectVersion
&other )
const
;
90
94
bool
operator>(
const
QgsProjectVersion
&other )
const
;
95
96
private
:
97
int
mMajor = 0;
98
int
mMinor = 0;
99
int
mSub = 0;
100
QString mName;
101
};
102
103
#endif // QGSPROJECTVERSION_H
operator==
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition:
qgsfeatureiterator.h:400
QgsProjectVersion::majorVersion
int majorVersion() const
Returns the major version number.
Definition:
qgsprojectversion.h:54
QgsProjectVersion::subVersion
int subVersion() const
Returns the sub version number.
Definition:
qgsprojectversion.h:64
operator!=
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition:
qgsfeatureiterator.h:405
QgsProjectVersion::QgsProjectVersion
QgsProjectVersion()=default
Creates a new NULL version.
QgsProjectVersion::minorVersion
int minorVersion() const
Returns the minor version number.
Definition:
qgsprojectversion.h:59
QgsProjectVersion
A class to describe the version of a project.
Definition:
qgsprojectversion.h:32
Generated on Sat Oct 24 2020 17:43:09 for QGIS API Documentation by
1.8.20