📄 scope.h
字号:
#ifndef __SCOPE_H__
#define __SCOPE_H__
#pragma once
#include "CPTypeDef.h"
//管理当前域及当前可见的域
//但函数内的局部域除外
class CScope
{
public:
//构造函数
CScope();
//析构函数
virtual ~CScope();
public:
//进入一个域
void EnterScope(LPCTSTR iScope="");
//离开一个域
void ExitScope();
//取得当前域
LPCTSTR GetCurrScope() {return mCurrScopeName;};
//初始化
void Init();
//当前域,为空时表示全局域
CStringPtrList mCurrScope; //记录嵌套的各个域
CString mCurrScopeName; //当前域字符串,类似于:Namespace::ClassName
//当前可见的域列表
CStringPtrList mEyeableScopes;
UNIT_TEST(CScope)
};
DECLARE_TEST_DUMP(CScope)
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -