ase/properties.hh file


Namespaces

namespace Ase
The Anklang C++ API namespace.

Classes

class Ase::ParameterProperty
Abstract base type for Property implementations with Parameter meta data.
class Ase::Preference
Class for preference parameters (global settings)
class Ase::PropertyImpl
Property implementation for GadgetImpl, using lambdas as accessors.

Typedefs

using PropertyGetter = std::function<void(Value&)>
Function type for Property value getters.
using PropertyLister = std::function<ChoiceS(const ParameterProperty&)>
Function type to list Choice Property values.
using PropertySetter = std::function<bool(const Value&)>
Function type for Property value setters.

Functions

template <typename Enum>
auto enum_lister(const ParameterProperty&) →  ChoiceS
Helper to list Jsonipc::Enum<> type values as Choice.
template <typename Enum>
auto make_enum_getter(Enum* v) →  std::function<void(Value&)>
Value getter for enumeration types.
template <typename Enum>
auto make_enum_setter(Enum* v) →  std::function<bool(const Value&)>
Value setter for enumeration types.