QGIS API Documentation
3.2.0-Bonn (bc43194)
src
core
qgsprovidermetadata.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprovidermetadata.cpp - Metadata class for
3
describing a data provider.
4
-------------------
5
begin : Sat Jan 10 2004
6
copyright : (C) 2004 by Gary E.Sherman
7
email : sherman at mrcc.com
8
***************************************************************************/
9
10
/***************************************************************************
11
* *
12
* This program is free software; you can redistribute it and/or modify *
13
* it under the terms of the GNU General Public License as published by *
14
* the Free Software Foundation; either version 2 of the License, or *
15
* (at your option) any later version. *
16
* *
17
***************************************************************************/
18
19
#include "
qgsprovidermetadata.h
"
20
21
22
23
QgsProviderMetadata::QgsProviderMetadata
( QString
const
&_key,
24
QString
const
&_description,
25
QString
const
&_library )
26
: key_( _key )
27
, description_( _description )
28
, library_( _library )
29
{}
30
31
QgsProviderMetadata::QgsProviderMetadata
(
const
QString &
key
,
const
QString &
description
,
const
CreateDataProviderFunction
&createFunc )
32
: key_( key )
33
, description_( description )
34
, mCreateFunc( createFunc )
35
{}
36
37
QString
QgsProviderMetadata::key
()
const
38
{
39
return
key_;
40
}
41
42
QString
QgsProviderMetadata::description
()
const
43
{
44
return
description_;
45
}
46
47
QString
QgsProviderMetadata::library
()
const
48
{
49
return
library_;
50
}
51
52
QgsProviderMetadata::CreateDataProviderFunction
QgsProviderMetadata::createFunction
()
const
53
{
54
return
mCreateFunc;
55
}
QgsProviderMetadata::description
QString description() const
This returns descriptive text for the provider.
Definition:
qgsprovidermetadata.cpp:42
QgsProviderMetadata::key
QString key() const
This returns the unique key associated with the provider.
Definition:
qgsprovidermetadata.cpp:37
QgsProviderMetadata::library
QString library() const
This returns the library file name.
Definition:
qgsprovidermetadata.cpp:47
QgsProviderMetadata::QgsProviderMetadata
QgsProviderMetadata(const QString &_key, const QString &_description, const QString &_library)
Definition:
qgsprovidermetadata.cpp:23
qgsprovidermetadata.h
QgsProviderMetadata::createFunction
CreateDataProviderFunction createFunction() const
Returns a pointer to the direct provider creation function, if supported by the provider.
Definition:
qgsprovidermetadata.cpp:52
QgsProviderMetadata::CreateDataProviderFunction
std::function< QgsDataProvider *(const QString &, const QgsDataProvider::ProviderOptions &) > CreateDataProviderFunction
Typedef for data provider creation function.
Definition:
qgsprovidermetadata.h:54
Generated on Sat Jun 23 2018 20:58:15 for QGIS API Documentation by
1.8.13