Template Function proxsuite::serialization::saveToJSON

Function Documentation

template<typename T>
void proxsuite::serialization::saveToJSON(const T &object, const std::string &filename)

Saves an object inside a JSON file.

Template Parameters:

T – Type of the object to deserialize.

Parameters:
  • object[in] Object in which the loaded data are copied.

  • filename[in] Name of the file containing the serialized data.