forked from realsenseai/librealsense
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfw-logs-parser.h
More file actions
26 lines (23 loc) · 787 Bytes
/
fw-logs-parser.h
File metadata and controls
26 lines (23 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* License: Apache 2.0. See LICENSE file in root directory. */
/* Copyright(c) 2019 Intel Corporation. All Rights Reserved. */
#pragma once
#include <string>
#include <vector>
#include "fw-logs-formating-options.h"
#include "fw-log-data.h"
namespace fw_logger
{
class fw_logs_parser
{
public:
explicit fw_logs_parser(std::string xml_full_file_path);
~fw_logs_parser(void);
std::vector<std::string> get_fw_log_lines(const fw_logs_binary_data& fw_logs_data_binary);
private:
std::string generate_log_line(char* fw_logs);
void fill_log_data(const char* fw_logs, fw_log_data* log_data);
uint64_t _last_timestamp;
fw_logs_formating_options _fw_logs_formating_options;
const double _timestamp_factor;
};
}