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