21 template <
typename Po
intIt>
22 static void Dump(std::ostream &out, PointIt begin, PointIt end) {
24 for (; begin != end; ++begin) {
25 begin->WriteDetection(out);
30 template <
typename Po
intIt>
31 static std::string
SaveToDisk(std::string path, PointIt begin, PointIt end) {
33 std::ofstream out(path);
34 Dump(out, begin, end);
39 template <
typename Po
intIt>
static void WriteHeader(std::ostream &out, PointIt begin, PointIt end) {
43 "element vertex " << std::to_string(
static_cast<size_t>(std::distance(begin, end))) <<
"\n";
44 begin->WritePlyHeaderInfo(out);
45 out <<
"\nend_header\n";
46 out << std::fixed << std::setprecision(4u);
#define DEBUG_ASSERT(predicate)
static void ValidateFilePath(std::string &filepath, const std::string &default_extension="")
Convenient function to validate a path before creating a file.
static void WriteHeader(std::ostream &out, PointIt begin, PointIt end)
static std::string SaveToDisk(std::string path, PointIt begin, PointIt end)
static void Dump(std::ostream &out, PointIt begin, PointIt end)
This file contains definitions of common data structures used in traffic manager.