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
notification.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/notification.h"
2#ifndef UFE_NOTIFICATION_H
3#define UFE_NOTIFICATION_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#include "ufeAssert.h"
15
17
19
30{
31public:
34
36 Notification(const Notification&) = default;
37
39 virtual ~Notification();
40
45 template<typename T>
46 const T& staticCast() const
47 {
48 UFE_ASSERT(nullptr != dynamic_cast<const T*>(this));
49 return static_cast<const T&>(*this);
50 }
51};
52
53}
54
55#endif /* UFE_NOTIFICATION_H */
Base class for all notifications.
Definition: notification.h:30
const T & staticCast() const
Definition: notification.h:46
Notification()
Constructor.
virtual ~Notification()
Destructor.
Notification(const Notification &)=default
Default copy constructor.
#define UFE_NS_DEF
Definition: ufe.h:36
#define UFE_ASSERT(EXPR)
Similar to UFE_ASSERT_MSG, but without the description of the assertion error.
Definition: ufeAssert.h:47
Definition of macros for symbol visibility.
#define UFE_SDK_DECL
Definition: ufeExport.h:35