ufe  4.2
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 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.10-windows/ufe/include/observer.h"
2 #ifndef _ufeObserver
3 #define _ufeObserver
4 // ===========================================================================
5 // Copyright 2018 Autodesk, Inc. All rights reserved.
6 //
7 // Use of this software is subject to the terms of the Autodesk license
8 // agreement provided at the time of installation or download, or which
9 // otherwise accompanies this software in either electronic or hard copy form.
10 // ===========================================================================
11 
12 #include "common/ufeExport.h"
13 
14 #include <memory>
15 
16 UFE_NS_DEF {
17 
18 class Notification;
19 
21 
34 {
35 public:
36  typedef std::shared_ptr<Observer> Ptr;
37  typedef std::weak_ptr<Observer> WeakPtr;
38 
40  virtual ~Observer();
41 
43  virtual void operator()(const Notification& notification);
44 
47  Observer();
48 };
49 
50 }
51 
52 #endif /* _ufeObserver */
Observer pattern Observer class.
Definition: observer.h:33
std::shared_ptr< Observer > Ptr
Definition: observer.h:36
Definition of macros for symbol visibility.
#define UFE_NS_DEF
Definition: ufe.h:35
Base class for all notifications.
Definition: notification.h:28
std::weak_ptr< Observer > WeakPtr
Definition: observer.h:37
#define UFE_SDK_DECL
Definition: ufeExport.h:36