YSTest: YShell.h 源文件

YSTest PreAlpha_b700_20160611 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

YShell.h
浏览该文件的文档.
1 /*
2 © 2009-2013, 2015 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
28 #ifndef YSL_INC_Core_YShell_h_
29 #define YSL_INC_Core_YShell_h_ 1
30
31 #include "YModules.h"
32 #include YFM_YSLib_Core_YMessageDefinition
33
34 namespace YSLib
35 {
36
37 namespace Shells
38 {
39
41 class YF_API Shell : private noncopyable, public enable_shared_from_this<Shell>
42 {
43 public:
47 DefDeCtor(Shell)
51 virtual
52 ~Shell();
53
57 bool
58 IsActive() const;
59
66 static void
67 DefShlProc(const Message&);
68
73 virtual PDefH(void, OnGotMessage, const Message& msg)
74 ImplExpr(DefShlProc(msg))
75 };
76
77 } // namespace Shells;
78
79 } // namespace YSLib;
80
81 #endif
82
YModules.h
Shells
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:45
YSLib::PDefH
PDefH(Environment &, FetchEnvironment,) ImplRet(FetchGlobalInstance().GetEnvironmentRef()) inline PDefH(GUIHost &
取单一环境对象引用。
DefDeCtor
#define DefDeCtor(_t)
简单通用成员函数定义。
Definition: YBaseMacro.h:156
ystdex::noncopyable
不可复制对象：禁止派生类调用默认原型的复制构造函数和复制赋值操作符。
Definition: base.h:41
YSLib::Shells::Shell
外壳程序：实现运行期控制流映像语义。
Definition: YShell.h:41
YF_API
#define YF_API
Definition: Platform.h:56
YSLib::Messaging::Message
消息。
Definition: YMessage.h:65