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
notification.h
Go to the documentation of this file.
1#line 1 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.11-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
16
18
29{
30public:
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 */
Base class for all notifications.
Definition: notification.h:29
const T & staticCast() const
Definition: notification.h:45
Notification()
Constructor.
virtual ~Notification()
Destructor.
Notification(const Notification &)=default
Default copy constructor.
#define UFE_NS_DEF
Definition: ufe.h:35
#define UFE_ASSERT(EXPR)
Similar to UFE_ASSERT_MSG, but without the description of the assertion error.
Definition: ufeAssert.h:46
Definition of macros for symbol visibility.
#define UFE_SDK_DECL
Definition: ufeExport.h:36