4 #ifndef ILANG_TARGET_JSON_INTERFACE_H__
5 #define ILANG_TARGET_JSON_INTERFACE_H__
9 #include <nlohmann/json.hpp>
16 using json = nlohmann::json;
38 const int& indent = -1);
49 #endif // ILANG_TARGET_JSON_INTERFACE_H__
static bool SerToFile(const InstrLvlAbsPtr &m, const std::string &file_name, const int &indent=-1)
Serialize the ILA model to the given file.
static InstrLvlAbsPtr Deserialize(const json &j)
Deserialize the ILA model from a JSON object.
InstrLvlAbs::InstrLvlAbsPtr InstrLvlAbsPtr
Pointer type for normal use of InstrLvlAbs.
Definition: instr_lvl_abs.h:326
static InstrLvlAbsPtr DesFromFile(const std::string &file_name)
Deserialize the ILA model from the given file.
static json Serialize(const InstrLvlAbsPtr &m)
Serialize the ILA model to a JSON object.
Class wrapper for the ILA portable Ser/Des interface.
Definition: target-json/interface.h:19