Handle (class MKI_MULTI_BASE) New in Version 2023.1 |
www.CAD6.com |
C++ Syntaxvoid Handle( bool& f_rCurrent, const bool f_fNew, const __int32 f_nFlag );
void Handle( __int32& f_rCurrent, const __int32 f_nNew, const __int32 f_nBit, const __int32 f_nFlag );
void Handle( __int32& f_rCurrent, const __int32 f_nNew, const __int32 f_nFlag );
void Handle( __int32& f_rCurrent1, __int32& f_rCurrent2, const __int32 f_nNew1, const __int32 f_nNew2, const __int32 f_nFlag );
void Handle( MKI_COLORVALUE_REF f_rCurrent, const MKI_COLORVALUE f_cNew, const __int32 f_nFlag );
void Handle( MKI_COLORVALUE_REF f_rCurrent1, MKI_COLORMODEL_REF f_rCurrent2, const MKI_COLORVALUE f_cNew1, const MKI_COLORMODEL f_cNew2, const __int32 f_nFlag );
void Handle( BYTE& f_rCurrent, const BYTE f_cNew, const __int32 f_nFlag );
void Handle( double& f_rCurrent, const double f_dNew, const __int32 f_nFlag );
void Handle( double& f_rCurrent1, double& f_rCurrent2, const double f_dNew1, const double f_dNew2, const __int32 f_nFlag );
void Handle( MKI_POINT_REF f_rCurrent, MKI_CONST_POINT_REF f_rNew, const __int32 f_nFlag );
void Handle( MKI_VECTOR_REF f_rCurrent, MKI_CONST_VECTOR_REF f_rNew, const __int32 f_nFlag );
void Handle( LPWSTR f_pszCurrent, const size_t f_unMaxSize, LPCWSTR f_pszNew, const __int32 f_nFlag );
void Handle( MKI_FONTDEF_REF f_rCurrent, MKI_CONST_FONTDEF_REF f_rNew, const __int32 f_nFlag );
void Handle( MKI_HIDELAYERS_REF f_rCurrent, MKI_CONST_HIDELAYERS_REF f_rNew, const __int32 f_nFlag );
Updates the generic valid / indeterminate information for one value in the derived class. The first time a value identified by a specific f_nFlag is passed, that given value will just be copied and set as valid (flag f_nFlag will be set in m_nInit). Each subsequent time, the class will check if the given value is identical to be first one. If not, the value will be marked as indeterminate (flag f_nFlag will be set in m_nMulti).
For a simple integer value, the corresponding code is:
if( m_nValid & f_nFlag ) { if( f_rCurrent != f_nNew ) m_nMulti |= f_nFlag; } else { f_rCurrent = f_nNew; m_nValid |= f_nFlag; }
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH