LuciadCPillar 2023.1.04
luciad::GeoPackageDataSource::Builder Class Referencefinal

Builder for creating luciad::GeoPackageDataSource. More...

#include <luciad/formats/geopackage/GeoPackageDataSource.h>

Public Member Functions

 Builder (Builder &&other) noexcept
 
 Builder (const Builder &other)
 
 ~Builder ()
 
std::shared_ptr< GeoPackageDataSourcebuild ()
 Build the GeoPackage data source . More...
 
Builderoperator= (Builder other) noexcept
 
Buildersource (std::string source)
 Sets the absolute path to the GeoPackage file. More...
 
BuildertableName (std::string tableName)
 Sets the name of the table that needs to be decoded. More...
 

Detailed Description

Builder for creating luciad::GeoPackageDataSource.

Constructor & Destructor Documentation

◆ Builder() [1/2]

luciad::GeoPackageDataSource::Builder::Builder ( const Builder other)

◆ Builder() [2/2]

luciad::GeoPackageDataSource::Builder::Builder ( Builder &&  other)
noexcept

◆ ~Builder()

luciad::GeoPackageDataSource::Builder::~Builder ( )

Member Function Documentation

◆ build()

std::shared_ptr< GeoPackageDataSource > luciad::GeoPackageDataSource::Builder::build ( )

Build the GeoPackage data source .

After calling this function, this builder should no longer be used.

Exceptions
luciad::LogicExceptionIf not all mandatory parameters are set.
Returns
the GeoPackage data source.

◆ operator=()

Builder & luciad::GeoPackageDataSource::Builder::operator= ( Builder  other)
noexcept

◆ source()

Builder & luciad::GeoPackageDataSource::Builder::source ( std::string  source)

Sets the absolute path to the GeoPackage file.

The extension of the file should be '.gpkg'. Calling this function is mandatory.

Parameters
sourceThe absolute path to the GeoPackage file.

◆ tableName()

Builder & luciad::GeoPackageDataSource::Builder::tableName ( std::string  tableName)

Sets the name of the table that needs to be decoded.

Calling this function is optional. If not specified, the first features table is used.

Parameters
tableNameThe name of the table that needs to be decoded.