#include <observerobject.h>
This helper template reduces the effort of creating static observables.
static StaticObservableStorage<LicenseInterface::ObservableLicenseUpdatedDelegate> g_observableLicenseUpdated;
required code in global Init: g_observableLicenseUpdated.Init("ObservableLicenseUpdated") iferr_return;
required code in global Free: g_observableLicenseUpdated.Free();
Public Member Functions | |
Result< void > | Init (const Char *observableId) |
void | Free () |
ObservableRef< T > | Get () |
Private Types | |
using | ObservableType = ObservableImplRef< ObservableClassPrivateHelper, T > |
Private Attributes | |
ObserverObjectRef * | _notificationObject |
ObservableType * | _observable |
|
private |
void Free | ( | void | ) |
ObservableRef<T> Get | ( | void | ) |
|
private |
|
private |