YSTest: Initialization.h 源文件

YSTest PreAlpha_b800_20170810 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
54 YF_API void
55 InitializeKeyModule(std::function<void()>, const char*, const char*,
56 string_view);
57
64 YF_API void
65 TraceForOutermost(const std::exception&, RecordLevel) ynothrow;
66
67
76 YF_API YB_NONNULL(1, 2) ValueNode
77 LoadNPLA1File(const char* disp, const char* path, ValueNode(*creator)(),
78 bool show_info = {});
79
85 YF_API void
86 LoadComponents(Application&, const ValueNode&);
87
94 YF_API ValueNode
95 LoadConfiguration(bool = {});
96
102 YF_API void
103 SaveConfiguration(const ValueNode&);
104
105
114 YF_API void
115 InitializeSystemFontCache(Drawing::FontCache&, const string&, const string&);
116
117
123 YF_API ValueNode&
124 FetchRoot() ynothrow;
125
131 YF_API Drawing::FontCache&
132 FetchDefaultFontCache();
133
138 YF_API MIMEBiMapping&
139 FetchMIMEBiMapping();
140
141 } // namespace YSLib;
142
143 #endif
144
YSLib::FetchMIMEBiMapping
YF_API MIMEBiMapping & FetchMIMEBiMapping()
取 MIME 类型名和文件扩展名双向映射对象。
Definition: Initialization.cpp:544
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:45
YSLib::FetchDefaultFontCache
YF_API Drawing::FontCache & FetchDefaultFontCache()
取默认字体缓存。 字体缓存初始化失败。
Definition: Initialization.cpp:530
YSLib::RecordLevel
YF_API RecordLevel
Definition: YException.h:142
YF_API
#define YF_API
Definition: Platform.h:56
Drawing
YSLib::ynothrow
YB_PURE const _type size_t n ynothrow
Definition: YCoreUtilities.h:168
YSLib::InitializeKeyModule
YF_API void InitializeKeyModule(std::function< void()>, const char *, const char *, string_view)
初始化关键模块。
Definition: Initialization.cpp:337
YSLib::InitializeSystemFontCache
YF_API void InitializeSystemFontCache(Drawing::FontCache &, const string &, const string &)
初始化系统字体缓存。
Definition: Initialization.cpp:478
YSLib::creator
YF_API const char ValueNode(* creator)()
Definition: Initialization.h:77
YModules.h
YSLib::ValueNode
值类型节点。
Definition: ValueNode.h:58
YSLib::YB_NONNULL
YF_API YB_NONNULL(1, 2) ValueNode LoadNPLA1File(const char *disp
载入 NPLA1 配置文件。
YSLib::show_info
YF_API const char ValueNode(*) boo show_info)
Definition: Initialization.h:78
YSLib::SaveConfiguration
YF_API void SaveConfiguration(const ValueNode &)
保存默认配置。
Definition: Initialization.cpp:463
YSLib::TraceForOutermost
YF_API void TraceForOutermost(const std::exception &, RecordLevel) ynothrow
处理最外层边界的异常，若捕获致命错误则在之后终止程序。
Definition: Initialization.cpp:356
YSLib::LoadConfiguration
YF_API ValueNode LoadConfiguration(bool={})
载入默认配置。
Definition: Initialization.cpp:453
YSLib::FetchRoot
YF_API ValueNode & FetchRoot() ynothrow
取值类型根节点。
Definition: Initialization.cpp:524
YSLib::LoadNPLA1File
ValueNode LoadNPLA1File(const char *disp, const char *path, ValueNode(*creator)(), bool show_info)
Definition: Initialization.cpp:379
YSLib::path
YF_API const char * path
Definition: Initialization.h:77
YSLib::LoadComponents
YF_API void LoadComponents(Application &, const ValueNode &)
初始化应用程序组件。
Definition: Initialization.cpp:430
ystdex::string_view
basic_string_view< char > string_view
Definition: string_view.hpp:415