Template Function coal::serialization::saveToBinary

Function Documentation

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

Saves an object inside a binary 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.