Program Listing for File io.hpp

Return to documentation for file (main/include/io.hpp)

#ifndef _SQUIGGLES_IO_HPP_
#define _SQUIGGLES_IO_HPP_

#include <optional>
#include <vector>

#include "geometry/profilepoint.hpp"

namespace squiggles {
int serialize_path(std::ostream& out, std::vector<ProfilePoint> path);

std::optional<std::vector<ProfilePoint>> deserialize_path(std::istream& in);

std::optional<std::vector<ProfilePoint>>
deserialize_pathfinder_path(std::istream& left, std::istream& right);
} // namespace squiggles

#endif