ilang  1.1.4
ILAng: A Modeling and Verification Platform for SoCs
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros
target-json/interface.h
Go to the documentation of this file.
1 
4 #ifndef ILANG_TARGET_JSON_INTERFACE_H__
5 #define ILANG_TARGET_JSON_INTERFACE_H__
6 
7 #include <string>
8 
9 #include <nlohmann/json.hpp>
10 
12 
14 namespace ilang {
15 
16 using json = nlohmann::json;
17 
20 public:
21  // ------------------------- METHODS -------------------------------------- //
25  static json Serialize(const InstrLvlAbsPtr& m);
26 
30  static InstrLvlAbsPtr Deserialize(const json& j);
31 
37  static bool SerToFile(const InstrLvlAbsPtr& m, const std::string& file_name,
38  const int& indent = -1);
39 
43  static InstrLvlAbsPtr DesFromFile(const std::string& file_name);
44 
45 }; // class IlaSerDesMngr
46 
47 } // namespace ilang
48 
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