YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YCLib/Host.h
浏览该文件的文档.
1 /*
2  © 2014 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 
29 #ifndef YCL_INC_Host_h_
30 #define YCL_INC_Host_h_ 1
31 
32 #include "YCLib/YModules.h"
33 #include "YSLib/Core/YModules.h"
34 #include YFM_YCLib_YCommon
35 #include YFM_YCLib_NativeAPI
36 #include YFM_YSLib_Core_YException // for YSLib::LoggedEvent;
37 
38 #if YF_Hosted
39 
40 namespace platform_ex
41 {
42 
48 class YF_API Exception : public YSLib::LoggedEvent
49 {
50 public:
52  Exception(const std::string& = "unknown host exception",
53  LevelType = {}) ynothrow;
54 };
55 
56 } // namespace platform_ex;
57 
58 #endif
59 
60 #endif
61 
#define YF_API
Definition: Platform.h:64
std::exception Exception
YSLib 异常基类。
Definition: yexcept.h:44
#define ynothrow
YSLib 无异常抛出保证:若支持 noexcept 关键字, 指定特定的 noexcept 异常规范。
Definition: ydef.h:514
GSStringTemplate< char >::basic_string string
Definition: ycont.h:164
记录日志的异常事件类。
Definition: yexcept.h:58