Builder that allows DataProperty instances to be created.
More...
#include <luciad/datamodels/DataProperty.h>
Builder that allows DataProperty instances to be created.
Typical usage would be create a DataProperty::Builder using DataProperty::newBuilder, specifying the data property's name. Then specify the value type and finally build() the data property. The following snippet shows how this is done for a simple example data property:
Builder & valueType(DataType type)
Sets the data type for the data property under construction.
DataProperty build()
Build the data type, including the value type that was set on this builder.
Builder & name(std::string name)
Sets the name of the data property.
static Builder newBuilder()
Creates a new DataProperty builder.
static const DataType & getGeometryType()
◆ Builder() [1/2]
luciad::DataProperty::Builder::Builder |
( |
const Builder & |
other | ) |
|
◆ Builder() [2/2]
luciad::DataProperty::Builder::Builder |
( |
Builder && |
other | ) |
|
|
noexcept |
◆ ~Builder()
luciad::DataProperty::Builder::~Builder |
( |
| ) |
|
◆ build()
Build the data type, including the value type that was set on this builder.
After calling this function, this builder should no longer be used.
- Returns
- the data type.
- Exceptions
-
◆ name()
Builder & luciad::DataProperty::Builder::name |
( |
std::string |
name | ) |
|
Sets the name of the data property.
Calling this function is mandatory.
- Parameters
-
name | name of the data property. |
- Returns
- this builder.
◆ operator=()
◆ valueType()
Sets the data type for the data property under construction.
Calling this function is mandatory.
- Parameters
-
type | the data type for the data property under construction. |
- Returns
- this builder.