LuciadCPillar 2023.1.04
luciad::DataProperty Class Referencefinal

Represents a property of a DataType. More...

#include <luciad/datamodels/DataProperty.h>

Classes

class  Builder
 Builder that allows DataProperty instances to be created. More...
 

Public Member Functions

size_t getHash () const
 
const std::string & getName () const
 
const DataTypegetValueType () const
 
bool operator!= (const DataProperty &other) const
 
bool operator== (const DataProperty &other) const
 

Static Public Member Functions

static Builder newBuilder ()
 Creates a new DataProperty builder. More...
 

Detailed Description

Represents a property of a DataType.

A property has a name and a value type. The value type indicates whether the value is a simple primitive or another data object.

New properties can be defined using a DataProperty::Builder (see newBuilder()).

Instances of this class are thread safe. Once an instance has been created, there is no public API to modify it.

Member Function Documentation

◆ getHash()

size_t luciad::DataProperty::getHash ( ) const

◆ getName()

const std::string & luciad::DataProperty::getName ( ) const

◆ getValueType()

const DataType & luciad::DataProperty::getValueType ( ) const

◆ newBuilder()

static Builder luciad::DataProperty::newBuilder ( )
static

Creates a new DataProperty builder.

Returns
a new DataProperty builder.

◆ operator!=()

bool luciad::DataProperty::operator!= ( const DataProperty other) const

◆ operator==()

bool luciad::DataProperty::operator== ( const DataProperty other) const
Parameters
otheranother property
Returns
whether this and other have the same name and value type.