Skip to content

Commit

Permalink
Update visualization support in resolver.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardodebenedictis committed Apr 15, 2024
1 parent e6a6973 commit 266df56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/resolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ namespace ratio
#endif
}

#ifdef ENABLE_VISUALIZATION
json::json to_json(const resolver &r) noexcept
{
json::json j_r{{"id", get_id(r)}, {"flaw", get_id(r.get_flaw())}, {"rho", to_string(r.get_rho())}, {"intrinsic_cost", to_json(r.get_intrinsic_cost())}, {"data", r.get_data()}};
Expand All @@ -58,4 +59,5 @@ namespace ratio
j_r["preconditions"] = std::move(preconditions);
return j_r;
}
#endif
} // namespace ratio

0 comments on commit 266df56

Please sign in to comment.