YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
yshell.h
浏览该文件的文档.
1 /*
2  Copyright (C) by Franksoft 2009 - 2012.
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 "ymsgdef.h"
32 #include "yfunc.hpp"
33 
35 
36 YSL_BEGIN_NAMESPACE(Shells)
37 
38 
39 class YF_API Shell : private noncopyable, public enable_shared_from_this<Shell>
40 {
41 public:
45  DefDeCtor(Shell)
49  virtual
50  ~Shell();
51 
55  bool
56  IsActive() const;
57 
63  static int
64  DefShlProc(const Message&);
65 
70  virtual PDefH(void, OnGotMessage, const Message& msg)
71  ImplExpr(DefShlProc(msg))
72 };
73 
74 YSL_END_NAMESPACE(Shells)
75 
76 YSL_END
77 
78 #endif
79