91 std::cout <<
"</record>" << std::endl;
107 unsigned int line_counter = 0;
108 unsigned int next_commit = 1;
111 std::cout <<
"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>" << std::endl;
115 double last_timestamp = -1.;
120 if (line.length() == 0 || line.substr(0,1) ==
"#")
128 double timestamp = atof((line.substr(0, line.find(
' ', 0))).data());
129 if (last_timestamp > timestamp)
131 if (!icl_core::config::getDefault<bool>(
"/icl_hardware_can/force_meta_dump",
false))
138 std::cout <<
"<!-- Warning: Time sequence of can file out of order -->" << std::endl;
142 if (next_commit == line_counter)
144 unsigned int time_sec =
static_cast<int>(timestamp);
146 std::cout <<
"<frame number=\"" << line_counter;
147 std::cout <<
"\" timesec=\"" << time_sec;
148 std::cout <<
"\" timeusec=\"" <<
static_cast<int>((timestamp - time_sec)*10000000);
149 std::cout <<
"\" filepos=\"" <<
m_data_file.tellg() <<
"\">";
150 std::cout <<
" </frame>" << std::endl;
153 last_timestamp = timestamp;
156 if (line_counter < 1)
#define LOGGING_ERROR(streamname, arg)
ThreadStream & endl(ThreadStream &stream)