QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
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 "qgis_core.h"
22
23
#include <QString>
24
#include <QStringList>
25
33
class
CORE_EXPORT
QgsProjectVersion
34
{
35
public
:
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
76
bool
operator==
(
const
QgsProjectVersion
&other )
const
;
77
bool
operator!=
(
const
QgsProjectVersion
&other )
const
;
78
bool
operator>=
(
const
QgsProjectVersion
&other )
const
;
79
bool
operator>
(
const
QgsProjectVersion
&other )
const
;
80
bool
operator<
(
const
QgsProjectVersion
&other )
const
;
81
bool
operator<=
(
const
QgsProjectVersion
&other )
const
;
82
83
private
:
84
int
mMajor = 0;
85
int
mMinor = 0;
86
int
mSub = 0;
87
QString mName;
88
};
89
90
#endif
// QGSPROJECTVERSION_H
QgsProjectVersion
Describes the version of a project.
Definition
qgsprojectversion.h:34
QgsProjectVersion::subVersion
int subVersion() const
Returns the sub version number.
Definition
qgsprojectversion.h:64
QgsProjectVersion::majorVersion
int majorVersion() const
Returns the major version number.
Definition
qgsprojectversion.h:54
QgsProjectVersion::minorVersion
int minorVersion() const
Returns the minor version number.
Definition
qgsprojectversion.h:59
QgsProjectVersion::QgsProjectVersion
QgsProjectVersion()=default
Creates a new NULL version.
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:8255
operator<
bool operator<(const QVariant &v1, const QVariant &v2)
Compares two QVariant values and returns whether the first is less than the second.
Definition
qgis.h:8271
operator>=
bool operator>=(const QgsCoordinateReferenceSystem &c1, const QgsCoordinateReferenceSystem &c2)
Definition
qgscoordinatereferencesystem.cpp:3657
operator<=
bool operator<=(const QgsCoordinateReferenceSystem &c1, const QgsCoordinateReferenceSystem &c2)
Definition
qgscoordinatereferencesystem.cpp:3661
operator==
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition
qgsfeatureiterator.h:427
operator!=
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition
qgsfeatureiterator.h:432
Generated on
for QGIS API Documentation by
1.17.0