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
5namespace gui_framework
6{
7 namespace interfaces
8 {
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
26 {
27 return static_cast<uint32_t>(CP_UTF8);
28 }
29 }
30}
#define GUI_FRAMEWORK_API
Provides interface for serializable to JSON format.
virtual json::JSONBuilder getStructure() const =0