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
6namespace Utils
7{
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}
virtual std::string to_json() const =0
virtual ~IJsonable()
Definition IJsonable.h:11
virtual void from_json(const std::string &json)=0
IJsonable()=default
#define UTILS_EXPORT