LuciadCPillar 2023.1.05
luciad::WmsModelDecoderOptions::Builder Class Referencefinal

Builder for the WMS options. More...

#include <luciad/formats/wms/WmsModelDecoderOptions.h>

Public Member Functions

 Builder (Builder &&other) noexcept
 
 Builder (const Builder &other)
 
 ~Builder ()
 
WmsModelDecoderOptions build ()
 Builds the options for the WMS model decoder. More...
 
BuilderhttpClient (std::shared_ptr< IHttpClient > httpClient)
 Sets the http client to be used for fetching the data. More...
 
Builderoperator= (Builder other) noexcept
 

Detailed Description

Builder for the WMS options.

Since
2023.0

Constructor & Destructor Documentation

◆ Builder() [1/2]

luciad::WmsModelDecoderOptions::Builder::Builder ( const Builder other)

◆ Builder() [2/2]

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

◆ ~Builder()

luciad::WmsModelDecoderOptions::Builder::~Builder ( )

Member Function Documentation

◆ build()

WmsModelDecoderOptions luciad::WmsModelDecoderOptions::Builder::build ( )

Builds the options for the WMS model decoder.

Returns
the options for the WMS model decoder.
Exceptions
luciad::LogicExceptionIf not all mandatory parameters are set.

◆ httpClient()

Builder & luciad::WmsModelDecoderOptions::Builder::httpClient ( std::shared_ptr< IHttpClient httpClient)

Sets the http client to be used for fetching the data.

Calling this function is optional.

See related article for an example on how to customize HTTP requests when loading data.

Parameters
httpClientHTTP client implementation to fetch the WMS resources. When nullptr the decoder uses its own HTTP client.
Returns
this builder.

◆ operator=()

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