GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
BaseCompositeParser.cpp
Go to the documentation of this file.
2
4
5using namespace std;
6
7namespace gui_framework
8{
9 namespace parsers
10 {
12 mode(BaseComposite::exitMode::destroyWindow)
13 {
14
15 }
16
17 void BaseCompositeParser::parse(const json::utility::jsonObject& description)
18 {
19 using json::utility::jsonObject;
20
21 BaseComponentParser::parse(description);
22
23 windowFunctionName = description.getString("windowFunctionName");
24
25 if (description.contains("onDestroyFunctionName", json::utility::variantTypeEnum::jString))
26 {
27 onDestroyFunctionName = description.getString("onDestroyFunctionName");
28 onDestroyFunctionModuleName = description.getString("onDestroyFunctionModuleName");
29 }
30
31 mode = static_cast<gui_framework::BaseComposite::exitMode>(description.getInt("exitMode"));
32 }
33 }
34}
Base class for all windows that has children windows.
virtual void parse(const json::utility::jsonObject &description)
virtual void parse(const json::utility::jsonObject &description) override