chigraph  master
Systems programming language written for beginners in LLVM
JsonDeserializer.hpp File Reference

Define deserialization functions. More...

#include "chi/Fwd.hpp"
#include "chi/Support/json.hpp"
#include <boost/filesystem.hpp>
#include <boost/utility/string_view.hpp>
+ Include dependency graph for JsonDeserializer.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 chi
 The namespace where chigraph lives.
 

Functions

Json Serialization/Deserialization
Result chi::jsonToGraphModule (Context &createInside, const nlohmann::json &input, const boost::filesystem::path &fullName, GraphModule **toFill=nullptr)
 Load a GraphModule from json. More...
 
Result chi::createGraphFunctionDeclarationFromJson (GraphModule &createInside, const nlohmann::json &input, GraphFunction **toFill=nullptr)
 Create a forward declaration of a function in a module with an empty graph. More...
 
Result chi::jsonToGraphFunction (GraphFunction &createInside, const nlohmann::json &input)
 Load a GraphFunction–must already exist (use createGraphFunctionDeclarationFromJson) More...
 
Result chi::jsonToGraphStruct (GraphModule &mod, boost::string_view name, const nlohmann::json &input, GraphStruct **toFill=nullptr)
 Load a GraphStruct from json. More...
 
std::pair< std::string, std::string > chi::parseObjectPair (const nlohmann::json &object)
 Parse something that looks like: {"hello": "there"} into {"hello", "there"}. More...
 

Detailed Description

Define deserialization functions.

Definition in file JsonDeserializer.hpp.