LuciadCPillar 2024.0.08
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
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
 Returns the hash code. More...
 
const std::string & getName () const
 Returns the name of the data property. More...
 
const DataTypegetValueType () const
 Returns the type of the value of this data property. More...
 
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

Returns the hash code.

Returns
the hash code.

◆ getName()

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

Returns the name of the data property.

Returns
the name of the data property.

◆ getValueType()

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

Returns the type of the value of this data property.

Returns
the type of the value of this data property.

◆ 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.