TypedAspect Class

template <typename ValueType> class Utils::TypedAspect

The TypedAspect class is a helper class for implementing a simple aspect. More...

Public Functions

void setDefaultValue(const ValueType &value)

Detailed Description

A typed aspect contains a single piece of data that is of the type ValueType.

Member Function Documentation

void TypedAspect::setDefaultValue(const ValueType &value)

Sets a default value and the current value for this aspect.

Note: The current value will be set silently to the same value. It is reasonable to only set default values in the setup phase of the aspect.

Default values will not be stored in settings.