GUIFramework
1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
BaseCompositeParser.cpp
Go to the documentation of this file.
1
#include "
BaseCompositeParser.h
"
2
3
#include "
BaseComposites/BaseComposite.h
"
4
5
using namespace
std;
6
7
namespace
gui_framework
8
{
9
namespace
parsers
10
{
11
BaseCompositeParser::BaseCompositeParser
() :
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
}
BaseComposite.h
BaseCompositeParser.h
gui_framework::BaseComposite
Base class for all windows that has children windows.
Definition
BaseComposite.h:23
gui_framework::BaseComposite::exitMode
exitMode
Definition
BaseComposite.h:26
gui_framework
Definition
BaseComponent.cpp:21
gui_framework::parsers::BaseComponentParser::parse
virtual void parse(const json::utility::jsonObject &description)
Definition
BaseComponentParser.cpp:20
gui_framework::parsers::BaseCompositeParser::mode
BaseComposite::exitMode mode
Definition
BaseCompositeParser.h:14
gui_framework::parsers::BaseCompositeParser::windowFunctionName
std::string windowFunctionName
Definition
BaseCompositeParser.h:13
gui_framework::parsers::BaseCompositeParser::onDestroyFunctionName
std::string onDestroyFunctionName
Definition
BaseCompositeParser.h:15
gui_framework::parsers::BaseCompositeParser::parse
virtual void parse(const json::utility::jsonObject &description) override
Definition
BaseCompositeParser.cpp:17
gui_framework::parsers::BaseCompositeParser::onDestroyFunctionModuleName
std::string onDestroyFunctionModuleName
Definition
BaseCompositeParser.h:16
gui_framework::parsers::BaseCompositeParser::BaseCompositeParser
BaseCompositeParser()
Definition
BaseCompositeParser.cpp:11
GUIFramework
src
Deserialization
Parsers
BaseCompositeParser.cpp
Generated by
1.12.0