ufe 5.5
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.11-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
17
18class Notification;
19
21
34{
35public:
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
48};
49
50}
51
52#endif /* _ufeObserver */
Base class for all notifications.
Definition: notification.h:29
Observer pattern Observer class.
Definition: observer.h:34
std::weak_ptr< Observer > WeakPtr
Definition: observer.h:37
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:36
#define UFE_NS_DEF
Definition: ufe.h:35
Definition of macros for symbol visibility.
#define UFE_SDK_DECL
Definition: ufeExport.h:36