QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
stac
qgsstaccollectionlist.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsstaccollectionlist.h
3
---------------------
4
begin : October 2024
5
copyright : (C) 2024 by Stefanos Natsis
6
email : uclaros at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSSTACCOLLECTIONLIST_H
17
#define QGSSTACCOLLECTIONLIST_H
18
19
#include "qgis_core.h"
20
#include "
qgsstaclink.h
"
21
22
#include <QMap>
23
#include <QUrl>
24
25
class
QgsStacCollection
;
26
33
class
CORE_EXPORT
QgsStacCollectionList
34
{
35
public
:
37
QgsStacCollectionList
() =
delete
;
38
46
QgsStacCollectionList
(
const
QVector< QgsStacCollection * >
collections
,
const
QVector< QgsStacLink > links,
int
numberMatched
= -1 );
47
49
~QgsStacCollectionList
();
50
55
QVector< QgsStacCollection * >
collections
()
const
;
56
61
QVector< QgsStacCollection * >
takeCollections
();
62
64
int
numberReturned
()
const
;
65
70
int
numberMatched
()
const
;
71
75
QUrl
url
()
const
;
76
80
QUrl
rootUrl
()
const
;
81
85
QUrl
nextUrl
()
const
;
86
90
QUrl
prevUrl
()
const
;
91
92
private
:
93
QVector< QgsStacCollection * > mCollections;
94
QMap< QString, QString > mUrls;
95
int
mNumberMatched = -1;
96
};
97
98
#endif
// QGSSTACCOLLECTIONLIST_H
QgsStacCollectionList::prevUrl
QUrl prevUrl() const
Returns the url of the collections' "prev" link.
Definition
qgsstaccollectionlist.cpp:78
QgsStacCollectionList::collections
QVector< QgsStacCollection * > collections() const
Returns the collections Ownership is not transferred.
Definition
qgsstaccollectionlist.cpp:41
QgsStacCollectionList::QgsStacCollectionList
QgsStacCollectionList()=delete
Default constructor deleted, use the variant with required parameters.
QgsStacCollectionList::numberReturned
int numberReturned() const
Returns the number of returned collections.
Definition
qgsstaccollectionlist.cpp:53
QgsStacCollectionList::rootUrl
QUrl rootUrl() const
Returns the url of the collections' "root" link.
Definition
qgsstaccollectionlist.cpp:68
QgsStacCollectionList::nextUrl
QUrl nextUrl() const
Returns the url of the collections' "next" link.
Definition
qgsstaccollectionlist.cpp:73
QgsStacCollectionList::url
QUrl url() const
Returns the url of the collections' "self" link.
Definition
qgsstaccollectionlist.cpp:63
QgsStacCollectionList::takeCollections
QVector< QgsStacCollection * > takeCollections()
Returns the collections Caller takes ownership of the returned collections.
Definition
qgsstaccollectionlist.cpp:46
QgsStacCollectionList::numberMatched
int numberMatched() const
Returns the total number of available collections If this information was not available by the STAC s...
Definition
qgsstaccollectionlist.cpp:58
QgsStacCollection
Stores data associated with a STAC Collection.
Definition
qgsstaccollection.h:33
qgsstaclink.h
Generated on
for QGIS API Documentation by
1.17.0