YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
yshell.h
浏览该文件的文档.
1 /*
2  © 2009-2013 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 #include YFM_YSLib_Core_YFunc
34 
35 namespace YSLib
36 {
37 
38 namespace Shells
39 {
40 
42 class YF_API Shell : private noncopyable, public enable_shared_from_this<Shell>
43 {
44 public:
52  virtual
53  ~Shell();
54 
58  bool
59  IsActive() const;
60 
67  static void
68  DefShlProc(const Message&);
69 
74  virtual PDefH(void, OnGotMessage, const Message& msg)
75  ImplExpr(DefShlProc(msg))
76 };
77 
78 } // namespace Shells;
79 
80 } // namespace YSLib;
81 
82 #endif
83 
外壳程序:实现运行期控制流映像语义。
Definition: yshell.h:42
#define DefDeCtor(_t)
Definition: YBaseMacro.h:131
#define YF_API
Definition: Platform.h:64
不可复制对象:禁止派生类调用默认原型的复制构造函数和复制赋值操作符。
Definition: utility.hpp:75
#define ImplExpr(...)
Definition: YBaseMacro.h:93