|
| virtual | ~IAnalyticsPropertyStore ()=default |
| |
| virtual uint32 | Num () const =0 |
| |
| virtual bool | Contains (const FString &Key) const =0 |
| |
| virtual bool | Remove (const FString &Key)=0 |
| |
| virtual void | RemoveAll ()=0 |
| |
| virtual EStatusCode | Set (const FString &Key, int32 Value)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, uint32 Value)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, int64 Value)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, uint64 Value)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, float Value)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, double Value)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, bool Value)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, const FString &Value, uint32 CharCountCapacityHint=0)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, const FDateTime &Value)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, int32 Value, const TFunction< bool(const int32 *, const int32 &)> &ConditionFn)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, uint32 Value, const TFunction< bool(const uint32 *, const uint32 &)> &ConditionFn)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, int64 Value, const TFunction< bool(const int64 *, const int64 &)> &ConditionFn)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, uint64 Value, const TFunction< bool(const uint64 *, const uint64 &)> &ConditionFn)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, float Value, const TFunction< bool(const float *, const float &)> &ConditionFn)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, double Value, const TFunction< bool(const double *, const double &)> &ConditionFn)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, bool Value, const TFunction< bool(const bool *, const bool &)> &ConditionFn)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, const FString &Value, const TFunction< bool(const FString *, const FString &)> &ConditionFn)=0 |
| |
| virtual EStatusCode | Set (const FString &Key, const FDateTime &Value, const TFunction< bool(const FDateTime *, const FDateTime &)> &ConditionFn)=0 |
| |
| virtual EStatusCode | Update (const FString &Key, const TFunction< bool(int32 &)> &UpdateFn)=0 |
| |
| virtual EStatusCode | Update (const FString &Key, const TFunction< bool(uint32 &)> &UpdateFn)=0 |
| |
| virtual EStatusCode | Update (const FString &Key, const TFunction< bool(int64 &)> &UpdateFn)=0 |
| |
| virtual EStatusCode | Update (const FString &Key, const TFunction< bool(uint64 &)> &UpdateFn)=0 |
| |
| virtual EStatusCode | Update (const FString &Key, const TFunction< bool(float &)> &UpdateFn)=0 |
| |
| virtual EStatusCode | Update (const FString &Key, const TFunction< bool(double &)> &UpdateFn)=0 |
| |
| virtual EStatusCode | Update (const FString &Key, const TFunction< bool(bool &)> &UpdateFn)=0 |
| |
| virtual EStatusCode | Update (const FString &Key, const TFunction< bool(FString &)> &UpdateFn)=0 |
| |
| virtual EStatusCode | Update (const FString &Key, const TFunction< bool(FDateTime &)> &UpdateFn)=0 |
| |
| virtual EStatusCode | Get (const FString &Key, int32 &OutValue) const =0 |
| |
| virtual EStatusCode | Get (const FString &Key, uint32 &OutValue) const =0 |
| |
| virtual EStatusCode | Get (const FString &Key, int64 &OutValue) const =0 |
| |
| virtual EStatusCode | Get (const FString &Key, uint64 &OutValue) const =0 |
| |
| virtual EStatusCode | Get (const FString &Key, float &OutValue) const =0 |
| |
| virtual EStatusCode | Get (const FString &Key, double &OutValue) const =0 |
| |
| virtual EStatusCode | Get (const FString &Key, bool &OutValue) const =0 |
| |
| virtual EStatusCode | Get (const FString &Key, FString &OutValue) const =0 |
| |
| virtual EStatusCode | Get (const FString &Key, FDateTime &OutValue) const =0 |
| |
| virtual void | VisitAll (const TFunction< void(FAnalyticsEventAttribute &&)> &VisitFn) const =0 |
| |
| virtual bool | Flush (bool bAsync=false, const FTimespan &Timeout=FTimespan::MaxValue())=0 |
| |
Implements a fast type safe key/value database to store analytics properties collected during a session.
Conditionnnaly adds or updates the specified key/value pair. The operation is atomic from the caller perspective. The function reads the actual value (if it exists), invoke the ConditionFn callback and write the value back if the condition function returns true. If the key doesn't exist, the actual value passed back to the condition function is null. If the condition function returns true, the proposed value is set, otherwise, the operation is declined and the store remains unchanged.
- Parameters
-
| Key | The name of the property to add or update. |
| Value | The value proposed. This value is passed as the second parameter to the ConditionFn callback. |
| ConditionFn | Function invoked back with the actual value and the proposed value to let the caller decide whether the proposed value should be set or not. If the callback function returns true, the proposed value is added/updated, otherwise, nothing changes. |
- Returns
- One of the following code
Implemented in FAnalyticsPropertyStore.