HydroCouple  2.0.0
HydroCouple Interface Definitions
Loading...
Searching...
No Matches
HydroCouple::IQuality Class Referenceabstract

IQuality describes qualitative data, where a value is specified as one category within a number of predefined (possible) categories. These categories can be ordered or not. More...

#include <hydrocouple.h>

Inheritance diagram for HydroCouple::IQuality:
Collaboration diagram for HydroCouple::IQuality:

Public Member Functions

virtual ~IQuality ()=default
 IQuality::~IQuality is a virtual destructor.
 
virtual hydrocouple_variant_set categories () const =0
 
virtual bool isOrdered () const =0
 Checks if the IQuality is defined by an ordered set of ICategory or not.
 
- Public Member Functions inherited from HydroCouple::IValueDefinition
virtual ~IValueDefinition ()=default
 ~IValueDefinition destructor
 
virtual const std::type_info & type () const =0
 Gets the object types of value that will be available and is returned by the GetValues function.
 
virtual hydrocouple_variant missingValue () const =0
 The value representing that data is missing.
 
virtual hydrocouple_variant defaultValue () const =0
 Gets the default value of the argument.
 
- Public Member Functions inherited from HydroCouple::IDescription
virtual ~IDescription ()=default
 IDescription::~IDescription is a virtual destructor.
 
virtual const std::string & caption () const =0
 Gets caption for the entity.
 
virtual void setCaption (const std::string &caption)=0
 Sets caption for the entity.
 
virtual const std::string & description () const =0
 Gets additional descriptive information for the entity.
 
virtual void setDescription (const std::string &description)=0
 Gets additional descriptive information for the entity.
 
- Public Member Functions inherited from HydroCouple::IPropertyChanged
virtual ~IPropertyChanged ()=default
 IPropertyChanged::~IPropertyChanged is a virtual destructor.
 
- Public Member Functions inherited from HydroCouple::ISignal< std::string >
virtual ~ISignal ()=default
 ISignal::~ISignal is a virtual destructor.
 
virtual void connect (const std::shared_ptr< ISlot< Args... > > &slot)=0
 connect is used to connect a slot to the signal.
 
virtual void disconnect (const std::shared_ptr< ISlot< Args... > > &slot)=0
 disconnect is used to disconnect a slot from the signal.
 
virtual void blockSignals (bool block)=0
 blockSignals is used to block signals from being emitted.
 

Additional Inherited Members

- Protected Member Functions inherited from HydroCouple::ISignal< std::string >
virtual void emit (Args... args)=0
 emit is used to emit the signal.
 

Detailed Description

IQuality describes qualitative data, where a value is specified as one category within a number of predefined (possible) categories. These categories can be ordered or not.

Qualitative data describes items in terms of some quality or categorization that may be 'informal' or may use relatively ill-defined characteristics such as warmth and flavour. However, qualitative data can include well-defined aspects such as gender, nationality or commodity type.

For qualitative data, the IComponentDataItem data exchanged between components contains one of the possible category instances per element in the IComponentDataItem involved.

Examples:

  • Colors: red, green, blue
  • Land use: nature, recreation, industry, infrastructure
  • Rating: worse, same, better

Constructor & Destructor Documentation

◆ ~IQuality()

virtual HydroCouple::IQuality::~IQuality ( )
virtualdefault

IQuality::~IQuality is a virtual destructor.

Member Function Documentation

◆ categories()

virtual hydrocouple_variant_set HydroCouple::IQuality::categories ( ) const
pure virtual
Returns
A list of the possible ICategory allowed for this IQuality If the quality is not ordered the list contains the ICategory's in an unspecified order. When it is ordered the list contains the ICategory's in the same sequence.

◆ isOrdered()

virtual bool HydroCouple::IQuality::isOrdered ( ) const
pure virtual

Checks if the IQuality is defined by an ordered set of ICategory or not.


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