![]() |
MAK RTIspy API Documentation for HLA Evolved
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2008 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: scopedNotifyLevelChange.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #ifndef scopedNotifyLevelChange_H_ 00013 #define scopedNotifyLevelChange_H_ 00014 00015 #include "rtiUtil.h" 00016 #include <vlutil/vlPrint.h> 00017 #include <vlutil/vlMutex.h> 00018 00019 00023 class DT_DLL_RTIUTIL DtScopedNotifyLevelChange 00024 { 00025 public: 00026 00029 DtScopedNotifyLevelChange( int newNotifyLevel = MAKRti::DtNotifyLevel ); 00030 00032 ~DtScopedNotifyLevelChange(); 00033 00035 void changeNotifyLevel( int newNotifyLevel ); 00036 00039 void restoreNotifyLevel(); 00040 00041 private: 00042 00044 int myOrigNotifyLevel; 00045 00047 static MAKRti::DtMutex theMutex; 00048 }; 00049 00050 #endif