json.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SemanticObjectRelations/Serialization/json.h>
4 
5 #include "MyGraph.h"
6 
7 
8 namespace mygraph
9 {
10  void to_json(nlohmann::json& j, const MyVertex& vertex);
11  void from_json(const nlohmann::json& j, MyVertex& vertex);
12 
13  void to_json(nlohmann::json& j, const MyEdge& edge);
14  void from_json(const nlohmann::json& j, MyEdge& edge);
15 
16  void to_json(nlohmann::json& j, const MyGraphAttributes& graph);
17  void from_json(const nlohmann::json& j, MyGraphAttributes& graph);
18 }
mygraph::MyVertex
Definition: MyGraph.h:8
mygraph::from_json
void from_json(const nlohmann::json &j, MyVertex &vertex)
Definition: json.cpp:19
mygraph::MyGraphAttributes
Definition: MyGraph.h:19
mygraph
Definition: json.h:8
mygraph::MyEdge
Definition: MyGraph.h:14
mygraph::to_json
void to_json(nlohmann::json &j, const MyVertex &vertex)
Definition: json.cpp:7
MyGraph.h