QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
src
core
project
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
45
QgsProjectVersion
(
int
major,
int
minor,
int
sub,
const
QString &name = QString() );
46
50
QgsProjectVersion
(
const
QString &
string
);
51
55
int
majorVersion()
const
{
return
mMajor;}
56
60
int
minorVersion()
const
{
return
mMinor;}
61
65
int
subVersion()
const
{
return
mSub;}
66
70
QString text()
const
;
71
75
bool
isNull()
const
;
76
80
bool
operator==
(
const
QgsProjectVersion
&other )
const
;
81
85
bool
operator!=
(
const
QgsProjectVersion
&other )
const
;
86
90
bool
operator>=
(
const
QgsProjectVersion
&other )
const
;
91
95
bool
operator>
(
const
QgsProjectVersion
&other )
const
;
96
97
private
:
98
int
mMajor = 0;
99
int
mMinor = 0;
100
int
mSub = 0;
101
QString mName;
102
};
103
104
#endif // QGSPROJECTVERSION_H
operator>
bool operator>(const QVariant &v1, const QVariant &v2)
Compares two QVariant values and returns whether the first is greater than the second.
Definition:
qgis.h:2630
operator==
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition:
qgsfeatureiterator.h:425
operator!=
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition:
qgsfeatureiterator.h:430
operator>=
bool operator>=(const QgsCoordinateReferenceSystem &c1, const QgsCoordinateReferenceSystem &c2)
Definition:
qgscoordinatereferencesystem.cpp:3081
QgsProjectVersion
A class to describe the version of a project.
Definition:
qgsprojectversion.h:32
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17