YSTest: Initialization.h 源文件

YSTest PreAlpha_b700_20160611 The YSLib Test Project

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

- 文件列表
- 文件成员

Initialization.h
浏览该文件的文档.
1 /*
2 © 2009-2016 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 INC_Helper_Initialization_h_
29 #define INC_Helper_Initialization_h_ 1
30
31 #include "YModules.h"
32 #include YFM_YSLib_Core_ValueNode // for ValueNode;
33 #include YFM_YSLib_Core_YApplication // for Application;
34 #include YFM_YSLib_Adaptor_Font // for Drawing::FontCache;
35 #include YFM_YSLib_Service_ContentType // for MIMEBiMapping;
36
37 namespace YSLib
38 {
39
40 #if YCL_DS
41
45 extern bool ShowInitializedLog;
46 #endif
47
52 YF_API void
53 ExtractInitException(const std::exception&, string&) ynothrow;
54
61 YF_API void
62 TraceForOutermost(const std::exception&, RecordLevel) ynothrow;
63
64
73 YF_API YB_NONNULL(1, 2) ValueNode
74 LoadNPLA1File(const char* disp, const char* path,
75 ValueNode(*creator)(), bool show_info = {});
76
81 YF_API void
82 LoadComponents(Application&, const ValueNode&);
83
90 YF_API ValueNode
91 LoadConfiguration(bool = {});
92
98 YF_API void
99 SaveConfiguration(const ValueNode&);
100
101
110 YF_API void
111 InitializeSystemFontCache(Drawing::FontCache&, const string&, const string&);
112
113
119 YF_API ValueNode&
120 FetchRoot() ynothrow;
121
127 YF_API Drawing::FontCache&
128 FetchDefaultFontCache();
129
134 YF_API MIMEBiMapping&
135 FetchMIMEBiMapping();
136
137 } // namespace YSLib;
138
139 #endif
140
YSLib::FetchDefaultFontCache
YF_API Drawing::FontCache & FetchDefaultFontCache()
取默认字体缓存。 字体缓存初始化失败。
Definition: Initialization.cpp:493
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:45
YSLib::FetchMIMEBiMapping
YF_API MIMEBiMapping & FetchMIMEBiMapping()
取 MIME 类型名和文件扩展名双向映射对象。
Definition: Initialization.cpp:518
YSLib::creator
YF_API const char ValueNode(* creator)()
Definition: Initialization.h:75
YSLib::RecordLevel
YF_API RecordLevel
Definition: YException.h:141
YSLib::ynothrow
YB_PURE const _type size_t n ynothrow
Definition: YCoreUtilities.h:168
YSLib::show_info
YF_API const char ValueNode(*) boo show_info)
Definition: Initialization.h:75
std
Definition: memory.hpp:1100
YSLib::path
YF_API const char * path
Definition: Initialization.h:74
YSLib::SaveConfiguration
YF_API void SaveConfiguration(const ValueNode &)
保存默认配置。
Definition: Initialization.cpp:421
YSLib::LoadComponents
YF_API void LoadComponents(Application &, const ValueNode &)
初始化应用程序组件。
Definition: Initialization.cpp:343
Drawing
YSLib::FetchRoot
YF_API ValueNode & FetchRoot() ynothrow
取值类型根节点。
Definition: Initialization.cpp:487
YSLib::YB_NONNULL
YF_API YB_NONNULL(1, 2) ValueNode LoadNPLA1File(const char *disp
载入 NPLA1 配置文件。
YModules.h
YSLib::InitializeSystemFontCache
YF_API void InitializeSystemFontCache(Drawing::FontCache &, const string &, const string &)
初始化系统字体缓存。
Definition: Initialization.cpp:436
YSLib::ValueNode
值类型节点。
Definition: ValueNode.h:57
YSLib::ExtractInitException
YF_API void ExtractInitException(const std::exception &, string &) ynothrow
展开初始化异常。
Definition: Initialization.cpp:277
YSLib::LoadConfiguration
YF_API ValueNode LoadConfiguration(bool={})
载入默认配置。
Definition: Initialization.cpp:411
YF_API
#define YF_API
Definition: Platform.h:56
YSLib::LoadNPLA1File
ValueNode LoadNPLA1File(const char *disp, const char *path, ValueNode(*creator)(), bool show_info)
Definition: Initialization.cpp:309
YSLib::TraceForOutermost
YF_API void TraceForOutermost(const std::exception &, RecordLevel) ynothrow
处理最外层边界的异常，若捕获致命错误则在之后终止程序。
Definition: Initialization.cpp:286