ufe 7.0
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
observer.h
Go to the documentation of this file.
1#line 1 "D:/Jenkins/workspace/EMS/ECG/ufe/full/ufe-full-python3.13-windows/ufe/include/observer.h"
2#ifndef UFE_OBSERVER_H
3#define UFE_OBSERVER_H
4
5// ===========================================================================
6// Copyright 2025 Autodesk, Inc. All rights reserved.
7//
8// The use of this software is subject to the Autodesk Terms of Use or other
9// license agreement provided at the time of installation or download, or
10// which otherwise accompanies this software.
11// ===========================================================================
12
13#include "common/ufeExport.h"
14
15#include <memory>
16
18
19class Notification;
20
22
35{
36public:
37 typedef std::shared_ptr<Observer> Ptr;
38 typedef std::weak_ptr<Observer> WeakPtr;
39
41 virtual ~Observer();
42
44 virtual void operator()(const Notification& notification);
45
49};
50
51}
52
53#endif /* UFE_OBSERVER_H */
Base class for all notifications.
Definition: notification.h:30
Observer pattern Observer class.
Definition: observer.h:35
std::weak_ptr< Observer > WeakPtr
Definition: observer.h:38
virtual ~Observer()
Destructor.
virtual void operator()(const Notification &notification)
Receive notification from Subject. Implementation in this class does nothing.
std::shared_ptr< Observer > Ptr
Definition: observer.h:37
#define UFE_NS_DEF
Definition: ufe.h:36
Definition of macros for symbol visibility.
#define UFE_SDK_DECL
Definition: ufeExport.h:35