13 fw_logs_parser::fw_logs_parser(
string xml_full_file_path)
14 : _fw_logs_formating_options(xml_full_file_path),
16 _timestamp_factor(0.00001)
28 vector<string> string_vector;
32 for (
int i = 0;
i < num_of_lines;
i++)
35 auto log =
const_cast<char*
>(
reinterpret_cast<char const*
>(temp_pointer));
37 string_vector.push_back(line);
56 auto* log_binary =
reinterpret_cast<const fw_log_binary*
>(fw_logs);
60 log_data->
severity =
static_cast<uint32_t>(log_binary->dword1.bits.severity);
62 log_data->
file_id =
static_cast<uint32_t>(log_binary->dword1.bits.file_id);
63 log_data->
group_id =
static_cast<uint32_t>(log_binary->dword1.bits.group_id);
66 log_data->
event_id =
static_cast<uint32_t>(log_binary->dword2.bits.event_id);
67 log_data->
line =
static_cast<uint32_t>(log_binary->dword2.bits.line_id);
71 log_data->
p1 =
static_cast<uint32_t>(log_binary->dword3.p1);
72 log_data->
p2 =
static_cast<uint32_t>(log_binary->dword3.p2);
75 log_data->
p3 =
static_cast<uint32_t>(log_binary->dword4.p3);
78 log_data->
timestamp = log_binary->dword5.timestamp;
92 reg_exp.generate_message(log_event_data.line, log_event_data.num_of_params, params, &log_data->
message);
std::vector< std::string > get_fw_log_lines(const fw_logs_binary_data &fw_logs_data_binary)
void fill_log_data(const char *fw_logs, fw_log_data *log_data)
fw_logs_formating_options _fw_logs_formating_options
std::string generate_log_line(char *fw_logs)
const double _timestamp_factor
GLenum const GLfloat * params
void log(std::string message)
std::vector< uint8_t > logs_buffer