Chicane

Subscription

Header
Chicane/Core/Event/Subscription.hpp
Namespace
Chicane::Subscription

Subscriptions get notified upon any change to the source value of the Oservable.

Constructors

ModifierNameDescription
Subscription<T>(std::function<void (T)> inNext, std::function<void (const std::string&)> inError, std::function<void ()> inComplete)

Functions

AccessModifierTypeNameDescription
publicvoidnext(const T& inData)
publicvoiderror(const std::string& inMessage)
publicboolisCompleted()
publicvoidcomplete()

Properties

AccessModifierTypeNameDescription
protectedboolm_bIsCompleted
protectedstd::function<void (T)>m_next
protectedstd::function<void (const std::string&)>m_error
protectedstd::function<void ()>m_complete