//---------------------------------------------------------------------------- // EgalTech 2017-2017 //---------------------------------------------------------------------------- // File : SetTempMachLook.h Data : 26.06.17 Versione : 1.8f // Contenuto : Dichiarazione classe per impostazione temporanea // della fase corrente. // // // Modifiche : 14.10.16 DS Creazione modulo. // // //---------------------------------------------------------------------------- #pragma once #include "MachMgr.h" //---------------------------------------------------------------------------- class SetTempMachLook { public : SetTempMachLook( MachMgr* pMachMgr, int nLook) { m_pMachMgr = pMachMgr ; if ( m_pMachMgr != nullptr) { m_nPrevLook = m_pMachMgr->GetMachineLook() ; m_pMachMgr->SetMachineLook( nLook) ; } } ~SetTempMachLook( void) { Reset() ; } void Reset( void) { if ( m_pMachMgr != nullptr) m_pMachMgr->SetMachineLook( m_nPrevLook) ; } private : int m_nPrevLook ; MachMgr* m_pMachMgr ; } ;