#include <ArticyObjectNotificationManager.h>
|
| void | SplitInstance (const FString &InString, FString &OutName, FString &OutInstanceNumber) |
Manager class for handling notifications about changes in Articy objects.
◆ AddListener() [1/3]
| void UArticyObjectNotificationManager::AddListener |
( |
const FString & | Filter, |
|
|
EArticyTypeProperties | Flags, |
|
|
FArticyPropertyChangedFunction | ChangedFunction ) |
Adds a listener for changes to Articy objects matching the given filter and property flags.
- Parameters
-
| Filter | The filter string for identifying Articy objects. |
| Flags | The types of properties to include in notifications. |
| ChangedFunction | The function to call when a property changes. |
◆ AddListener() [2/3]
| void UArticyObjectNotificationManager::AddListener |
( |
const FString & | Filter, |
|
|
FArticyPropertyChangedFunction | ChangedFunction ) |
Adds a listener for changes to Articy objects matching the given filter.
- Parameters
-
| Filter | The filter string for identifying Articy objects. |
| ChangedFunction | The function to call when a property changes. |
Adds a listener for changes to Articy objects matching the given filter. Resolves the object based on the filter and adds the listener.
- Parameters
-
| Filter | The filter string for identifying Articy objects. |
| ChangedFunction | The function to call when a property changes. |
◆ AddListener() [3/3]
| void UArticyObjectNotificationManager::AddListener |
( |
UArticyBaseObject * | Object, |
|
|
FArticyPropertyChangedFunction | ChangedFunction ) |
Adds a listener for changes to a specific Articy object.
- Parameters
-
| Object | The Articy object to listen to. |
| ChangedFunction | The function to call when a property changes. |
Adds a listener for changes to a specific Articy object. Registers a lambda function to handle property changes.
- Parameters
-
| Object | The Articy object to listen to. |
| ChangedFunction | The function to call when a property changes. |
◆ Get()
Gets the singleton instance of the notification manager.
- Returns
- Pointer to the singleton instance.
Gets the singleton instance of the notification manager. Creates a new instance if one does not exist.
- Returns
- Pointer to the singleton instance.
◆ RemoveListeners() [1/2]
| void UArticyObjectNotificationManager::RemoveListeners |
( |
const FString & | Filter | ) |
|
Removes listeners for Articy objects matching the given filter.
- Parameters
-
| Filter | The filter string for identifying Articy objects. |
Removes listeners for Articy objects matching the given filter. Resolves the object based on the filter and removes its listeners.
- Parameters
-
| Filter | The filter string for identifying Articy objects. |
◆ RemoveListeners() [2/2]
Removes listeners from a specific Articy object.
- Parameters
-
| Object | The Articy object to remove listeners from. |
Removes listeners from a specific Articy object. Clears all change notifications for the given object.
- Parameters
-
| Object | The Articy object to remove listeners from. |
◆ SplitInstance()
| void UArticyObjectNotificationManager::SplitInstance |
( |
const FString & | InString, |
|
|
FString & | OutName, |
|
|
FString & | OutInstanceNumber ) |
|
protected |
Splits a string into an object name and instance number.
- Parameters
-
| InString | The input string to split. |
| OutName | The resulting object name. |
| OutInstanceNumber | The resulting instance number. |
Splits a string into an object name and instance number based on angle brackets.
- Parameters
-
| InString | The input string to split. |
| OutName | The resulting object name. |
| OutInstanceNumber | The resulting instance number. |
The documentation for this class was generated from the following files: