OdbDesign
OdbDesign ODB++ Parser - C++ library, gRPC/REST server, CLI, tests
Loading...
Searching...
No Matches
IJsonable.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
#include "
utils_export.h
"
5
6
namespace
Utils
7
{
8
class
UTILS_EXPORT
IJsonable
9
{
10
public
:
11
virtual
~IJsonable
() {}
12
13
virtual
std::string
to_json
()
const
= 0;
14
virtual
void
from_json
(
const
std::string& json) = 0;
15
16
protected
:
17
// abstract class/interface
18
IJsonable
() =
default
;
19
20
};
21
}
Utils::IJsonable
Definition
IJsonable.h:9
Utils::IJsonable::to_json
virtual std::string to_json() const =0
Utils::IJsonable::~IJsonable
virtual ~IJsonable()
Definition
IJsonable.h:11
Utils::IJsonable::from_json
virtual void from_json(const std::string &json)=0
Utils::IJsonable::IJsonable
IJsonable()=default
Utils
Definition
ArchiveExtractor.cpp:15
utils_export.h
UTILS_EXPORT
#define UTILS_EXPORT
Definition
utils_export.h:12
Utils
IJsonable.h
Generated by
1.9.8