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
notification.h
Go to the documentation of this file.
1 #line 1 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.10-windows/ufe/include/notification.h"
2 #ifndef _ufeNotification
3 #define _ufeNotification
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 #include "ufeAssert.h"
14 
15 UFE_NS_DEF {
16 
18 
29 {
30 public:
32  Notification();
33 
35  Notification(const Notification&) = default;
36 
38  virtual ~Notification();
39 
44  template<typename T>
45  const T& staticCast() const
46  {
47  UFE_ASSERT(nullptr != dynamic_cast<const T*>(this));
48  return static_cast<const T&>(*this);
49  }
50 };
51 
52 }
53 
54 #endif /* _ufeNotification */
Definition of macros for symbol visibility.
const T & staticCast() const
Definition: notification.h:45
#define UFE_ASSERT(EXPR)
Similar to UFE_ASSERT_MSG, but without the description of the assertion error.
Definition: ufeAssert.h:46
#define UFE_NS_DEF
Definition: ufe.h:35
Base class for all notifications.
Definition: notification.h:28
#define UFE_SDK_DECL
Definition: ufeExport.h:36