Builder for the Creator
class.
More...
#include <luciad/create/Creator.h>
Builder for the Creator
class.
- Since
- 2020.1
◆ Builder() [1/2]
luciad::Creator::Builder::Builder |
( |
const Builder & |
other | ) |
|
◆ Builder() [2/2]
luciad::Creator::Builder::Builder |
( |
Builder && |
other | ) |
|
|
noexcept |
◆ ~Builder()
luciad::Creator::Builder::~Builder |
( |
| ) |
|
◆ build()
std::shared_ptr< Creator > luciad::Creator::Builder::build |
( |
| ) |
const |
Returns a new creator, based on the properties set on this builder.
- Returns
- a new creator.
- Exceptions
-
◆ featureCreator()
Sets the creator that will create a feature instance.
- Parameters
-
featureCreator | the creator that will create a feature instance |
- Returns
- this builder
- Exceptions
-
◆ layer()
Builder & luciad::Creator::Builder::layer |
( |
std::shared_ptr< Layer > |
layer | ) |
|
Sets the layer to which new features will be added.
Calling this method is mandatory. If it is not set, Creator::Builder::build
will throw an exception.
This method will thrown an exception when it contains a model without IFeatureModelUpdater
.
- Parameters
-
layer | the layer to which new features need to be added. |
- Returns
- this builder
- Exceptions
-
◆ map()
Builder & luciad::Creator::Builder::map |
( |
std::shared_ptr< Map > |
map | ) |
|
Sets the map on which features are created.
This parameter is mandatory. If it is not set, Creator::Builder::build
will throw an exception.
- Parameters
-
map | the Map on which to add features |
- Returns
- this builder
- Exceptions
-
◆ operator=()