QGIS API Documentation 4.3.0-Master (389d690bb77)
Loading...
Searching...
No Matches
qgsstacitemcollection.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsstacitemcollection.h
3 ---------------------
4 begin : August 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 QGSSTACITEMCOLLECTION_H
17#define QGSSTACITEMCOLLECTION_H
18
19#include "qgis_core.h"
20#include "qgsstaclink.h"
21
22#include <QMap>
23#include <QUrl>
24
25class QgsStacItem;
26
36class CORE_EXPORT QgsStacItemCollection
37{
38 public:
41
49 QgsStacItemCollection( const QVector< QgsStacItem * > &items, const QVector< QgsStacLink > &links, int numberMatched = -1 );
50
53
58 QVector< QgsStacItem * > items() const;
59
64 QVector< QgsStacItem * > takeItems();
65
69 QUrl url() const;
70
74 QUrl rootUrl() const;
75
79 QUrl parentUrl() const;
80
84 QUrl collectionUrl() const;
85
89 QUrl nextUrl() const;
90
92 int numberReturned() const;
93
98 int numberMatched() const;
99
100 private:
101#ifdef SIP_RUN
103#endif
104
105 QVector< QgsStacItem * > mItems;
106 const QVector< QgsStacLink > mLinks;
107 QMap< QString, QString > mUrls;
108 int mNumberMatched = -1;
109};
110
111#endif // QGSSTACITEMCOLLECTION_H
int numberReturned() const
Returns the number of items in the collection.
QUrl parentUrl() const
Returns the url of the item collection's "parent" link.
QVector< QgsStacItem * > items() const
Returns the items in the collection Ownership is not transferred.
QUrl nextUrl() const
Returns the url of the item collection's "next" link.
int numberMatched() const
Returns the total number of items in the parent collection If this information was not available by t...
QgsStacItemCollection()=delete
Default constructor deleted, use the variant with required parameters.
QUrl rootUrl() const
Returns the url of the item collection's "root" link.
QUrl url() const
Returns the url of the item collection's "self" link.
QVector< QgsStacItem * > takeItems()
Returns the items in the collection Caller takes ownership of the returned items.
QUrl collectionUrl() const
Returns the url of the item collection's "collection" link.
Stores data associated with a STAC Item.
Definition qgsstacitem.h:35
#define SIP_FORCE
Definition qgis_sip.h:143