GUIFramework
1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
ISerializable.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Core.h
"
4
5
namespace
gui_framework
6
{
7
namespace
interfaces
8
{
10
class
GUI_FRAMEWORK_API
ISerializable
11
{
12
public
:
13
static
uint32_t getCodepage();
14
15
public
:
16
ISerializable
() =
default
;
17
18
virtual
json::JSONBuilder
getStructure
()
const
= 0;
19
20
friend
std::ostream& operator << (std::ostream& outputStream,
const
ISerializable
& serializable);
21
22
virtual
~ISerializable
() =
default
;
23
};
24
25
inline
uint32_t
ISerializable::getCodepage
()
26
{
27
return
static_cast<
uint32_t
>
(CP_UTF8);
28
}
29
}
30
}
Core.h
GUI_FRAMEWORK_API
#define GUI_FRAMEWORK_API
Definition
GUIFrameworkConstants.h:103
gui_framework::interfaces::ISerializable
Provides interface for serializable to JSON format.
Definition
ISerializable.h:11
gui_framework::interfaces::ISerializable::ISerializable
ISerializable()=default
gui_framework::interfaces::ISerializable::~ISerializable
virtual ~ISerializable()=default
gui_framework::interfaces::ISerializable::getStructure
virtual json::JSONBuilder getStructure() const =0
gui_framework::interfaces::ISerializable::getCodepage
static uint32_t getCodepage()
Definition
ISerializable.h:25
gui_framework
Definition
BaseComponent.cpp:21
GUIFramework
src
Interfaces
Utility
ISerializable.h
Generated by
1.12.0