Sen API
Sen Libraries
Loading...
Searching...
No Matches
sen::QuantitySpec Struct Referencefinal

Data of a quantity type. More...

#include <quantity_type.h>

Public Member Functions

 QuantitySpec (std::string name, std::string qualifiedName, std::string description, ConstTypeHandle< NumericType > elementType, std::optional< const Unit * > unit=std::nullopt, std::optional< float64_t > minValue=std::nullopt, std::optional< float64_t > maxValue=std::nullopt)

Public Attributes

std::string name
std::string qualifiedName
std::string description
ConstTypeHandle< NumericTypeelementType
std::optional< const Unit * > unit
std::optional< float64_tminValue
std::optional< float64_tmaxValue

Friends

bool operator== (const QuantitySpec &lhs, const QuantitySpec &rhs) noexcept
bool operator!= (const QuantitySpec &lhs, const QuantitySpec &rhs) noexcept

Detailed Description

Data of a quantity type.

Constructor & Destructor Documentation

◆ QuantitySpec()

sen::QuantitySpec::QuantitySpec ( std::string name,
std::string qualifiedName,
std::string description,
ConstTypeHandle< NumericType > elementType,
std::optional< const Unit * > unit = std::nullopt,
std::optional< float64_t > minValue = std::nullopt,
std::optional< float64_t > maxValue = std::nullopt )
inline

◆ operator==

bool operator== ( const QuantitySpec & lhs,
const QuantitySpec & rhs )
friend

◆ operator!=

bool operator!= ( const QuantitySpec & lhs,
const QuantitySpec & rhs )
friend

Member Data Documentation

◆ name

std::string sen::QuantitySpec::name

◆ qualifiedName

std::string sen::QuantitySpec::qualifiedName

◆ description

std::string sen::QuantitySpec::description

◆ elementType

ConstTypeHandle<NumericType> sen::QuantitySpec::elementType

◆ unit

std::optional<const Unit*> sen::QuantitySpec::unit

◆ minValue

std::optional<float64_t> sen::QuantitySpec::minValue

◆ maxValue

std::optional<float64_t> sen::QuantitySpec::maxValue

The documentation for this struct was generated from the following file: