OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
GraphicsItem.hpp
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
9#include "OTCore/Logger.h"
10
11template <class T>
13 T* ret = dynamic_cast<T*>(m_config);
14 OTAssertNullptr(ret);
15 return ret;
16}
17
18template <class T>
20 T* ret = dynamic_cast<T*>(m_config);
21 OTAssertNullptr(ret);
22 return ret;
23}
OpenTwin Logging system.
#define OTAssertNullptr(___ptr)
Check if the provided pointer is not a nullptr.
Definition OTAssert.h:19
T * getItemConfiguration(void)
Returns the configuration for the current item. The configuration may be modified....
Definition GraphicsItem.hpp:12