#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 (Bool create) |
Private Types | |
| using | ObservableType = ObservableImplRef< ObservableClass_PrivateHelper, T > |
Private Attributes | |
| ObserverObjectRef | _notificationObject |
| ObservableType | _observable |
| const char * | _observableId |
|
private |
| void Free | ( | ) |
| ObservableRef<T> Get | ( | Bool | create | ) |
|
private |
|
private |
|
private |