HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CH_SetParamScope.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: CH_SetParamScope.h (CH Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __CH_SETPARAMSCOPE_H_INCLUDED__
12 #define __CH_SETPARAMSCOPE_H_INCLUDED__
13 
14 #include "CH_API.h"
15 #include "CH_Manager.h"
16 #include <DEP/DEP_MicroNode.h>
17 
19 {
20 public:
23  , myMgr(mgr)
24  {
25  ++myMgr.mySettingGlobalParam;
26  }
28  {
29  --myMgr.mySettingGlobalParam;
30  }
31 
32 private:
33  CH_Manager &myMgr;
34 };
35 
37 {
38 public:
41  , myMgr(mgr)
42  {
43  ++myMgr.mySettingGuideParam;
44  }
46  {
47  --myMgr.mySettingGuideParam;
48  }
49 
50 private:
51  CH_Manager &myMgr;
52 };
53 
54 #endif // __CH_SETPARAMSCOPE_H_INCLUDED__
CH_SetGlobalParamScope(CH_Manager &mgr)
Global control whether dependencies can be cleared.
CH_SetGuideParamScope(CH_Manager &mgr)
#define CH_API
Definition: CH_API.h:10