QGIS API Documentation
3.14.0-Pi (9f7028fd23)
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
32
class
CORE_EXPORT
QgsProjectVersion
33
{
34
35
public
:
36
40
QgsProjectVersion
() =
default
;
41
42
QgsProjectVersion
(
int
major,
int
minor,
int
sub,
const
QString &name =
""
);
43
QgsProjectVersion
(
const
QString &
string
);
44
int
majorVersion() {
return
mMajor;}
45
int
minorVersion() {
return
mMinor;}
46
int
subVersion() {
return
mSub;}
47
QString text();
48
52
bool
isNull()
const
;
53
57
bool
operator==
(
const
QgsProjectVersion
&other )
const
;
58
62
bool
operator!=
(
const
QgsProjectVersion
&other )
const
;
63
67
bool
operator>=(
const
QgsProjectVersion
&other )
const
;
68
72
bool
operator>(
const
QgsProjectVersion
&other )
const
;
73
74
private
:
75
int
mMajor = 0;
76
int
mMinor = 0;
77
int
mSub = 0;
78
QString mName;
79
};
80
81
// clazy:excludeall=qstring-allocations
82
83
#endif // QGSPROJECTVERSION_H
operator==
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition:
qgsfeatureiterator.h:399
operator!=
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition:
qgsfeatureiterator.h:404
QgsProjectVersion
Definition:
qgsprojectversion.h:32
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17