/** * @file XTPIntel80Helpers.h * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ /** @cond */ #if !defined(__XTPINTEL80HELPERS_H__) # define __XTPINTEL80HELPERS_H__ # if (_MSC_VER >= 1000) # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" # ifdef __INTEL_COMPILER # define _XTP_USES_PROTECTED_ACCESS(theFiend, theClass, theType, theMember) \ class CAccess##theClass : public theClass \ { \ CAccess##theClass() \ { \ } \ \ public: \ inline theType Get##theMember() \ { \ return theMember; \ } \ friend class theFiend; \ }; # define _XTP_USES_PROTECTED_ACCESS_ARGS(theFiend, theClass, ctorArgs, theType, theMember) \ class CAccess##theClass : public theClass \ { \ CAccess##theClass ctorArgs : theClass ctorArgs \ { \ } \ \ public: \ inline theType Get##theMember() \ { \ return theMember; \ } \ friend class theFiend; \ }; # define _XTP_PROTECTED_ACCESS(theClass, thePointer, theMember) \ (((CAccess##theClass*)thePointer)->Get##theMember()) # define _XTP_PROTECTED_DEFWINDOWPROC_CALL(theFiend, thePonter, m, w, l) \ class CAccessWnd : public CWnd \ { \ CAccessWnd() \ { \ } \ \ public: \ inline void DefWindowProcBase(UINT message, WPARAM wParam, LPARAM lParam) \ { \ CWnd::DefWindowProc(message, wParam, lParam); \ } \ friend class theFiend; \ }; \ ((CAccessWnd*)(thePonter))->DefWindowProcBase(m, w, l); # else # define _XTP_USES_PROTECTED_ACCESS(theFiend, theClass, theType, theMember) \ class CAccess##theClass : public theClass \ { \ CAccess##theClass() \ { \ } \ friend class theFiend; \ }; # define _XTP_USES_PROTECTED_ACCESS_ARGS(theFiend, theClass, ctorArgs, ctorArgs2, theType, \ theMember) \ class CAccess##theClass : public theClass \ { \ CAccess##theClass##ctorArgs : theClass##ctorArgs2 \ { \ } \ friend class theFiend; \ }; # define _XTP_PROTECTED_ACCESS(theClass, thePointer, theMember) \ (((CAccess##theClass*)thePointer)->theMember) # define _XTP_PROTECTED_DEFWINDOWPROC_CALL(theFiend, thePonter, m, w, l) \ class CAccessWnd : public CWnd \ { \ CAccessWnd() \ { \ } \ friend class theFiend; \ }; \ ((CAccessWnd*)thePonter)->DefWindowProc(m, w, l); # endif /** @endcond */ ////////////////////////////////////////////////////////////////////// # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // #if !defined(__XTPINTEL80HELPERS_H__) /** @endcond */