Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
fw-logs
src/fw-logs/fw-logs-xml-helper.h
Go to the documentation of this file.
1
/* License: Apache 2.0. See LICENSE file in root directory. */
2
/* Copyright(c) 2019 Intel Corporation. All Rights Reserved. */
3
#pragma once
4
#include "../../third-party/rapidxml/rapidxml_utils.hpp"
5
#include "
fw-logs-formating-options.h
"
6
7
using namespace
rapidxml
;
8
9
namespace
librealsense
10
{
11
namespace
fw_logs
12
{
13
class
fw_logs_xml_helper
14
{
15
public
:
16
enum
node_type
17
{
18
event
,
19
file
,
20
thread
,
21
enums
,
22
none
23
};
24
25
fw_logs_xml_helper
(
std::string
xml_content);
26
~
fw_logs_xml_helper
(
void
);
27
28
bool
build_log_meta_data(
fw_logs_formating_options
* logs_formating_options);
29
30
private
:
31
bool
init
();
32
bool
build_meta_data_structure(
xml_node<>
* xml_node_list_of_events,
fw_logs_formating_options
* logs_formating_options);
33
node_type
get_next_node(
xml_node<>
* xml_node_list_of_events,
int
*
id
,
int
* num_of_params,
std::string
*
line
);
34
bool
get_thread_node(
xml_node<>
* node_file,
int
* thread_id,
std::string
* thread_name);
35
bool
get_event_node(
xml_node<>
* node_event,
int
* event_id,
int
* num_of_params,
std::string
*
line
);
36
bool
get_enum_name_node(
xml_node<>
* node_file,
int
* thread_id,
std::string
* thread_name);
37
bool
get_enum_value_node(
xml_node<>
* node_file,
int
* thread_id,
std::string
* enum_name);
38
bool
get_file_node(
xml_node<>
* node_file,
int
* file_id,
std::string
*
file_name
);
39
bool
get_root_node(
xml_node<>
** node);
40
bool
try_load_external_xml();
41
42
bool
_init_done
;
43
std::string
_xml_content
;
44
xml_document<>
_xml_doc
;
45
std::vector<char>
_document_buffer
;
46
};
47
}
48
}
librealsense::fw_logs::fw_logs_xml_helper::thread
Definition:
src/fw-logs/fw-logs-xml-helper.h:20
librealsense::fw_logs::fw_logs_xml_helper::_xml_doc
xml_document _xml_doc
Definition:
src/fw-logs/fw-logs-xml-helper.h:44
python-tutorial-1-depth.line
string line
Definition:
python-tutorial-1-depth.py:38
test-got-playback-frames.file_name
string file_name
Definition:
test-got-playback-frames.py:110
string
GLsizei const GLchar *const * string
Definition:
glad/glad/glad.h:2862
librealsense::fw_logs::fw_logs_xml_helper::file
Definition:
src/fw-logs/fw-logs-xml-helper.h:19
librealsense
Definition:
calibration-model.h:6
librealsense::fw_logs::fw_logs_xml_helper::_document_buffer
std::vector< char > _document_buffer
Definition:
src/fw-logs/fw-logs-xml-helper.h:45
init
void init(void)
Definition:
boing.c:180
librealsense::fw_logs::fw_logs_xml_helper::_init_done
bool _init_done
Definition:
src/fw-logs/fw-logs-xml-helper.h:42
librealsense::fw_logs::fw_logs_xml_helper::_xml_content
std::string _xml_content
Definition:
src/fw-logs/fw-logs-xml-helper.h:43
librealsense::fw_logs::fw_logs_xml_helper::node_type
node_type
Definition:
src/fw-logs/fw-logs-xml-helper.h:16
librealsense::fw_logs::fw_logs_xml_helper::enums
Definition:
src/fw-logs/fw-logs-xml-helper.h:21
librealsense::fw_logs::fw_logs_xml_helper::event
Definition:
src/fw-logs/fw-logs-xml-helper.h:18
librealsense::fw_logs::fw_logs_formating_options
Definition:
src/fw-logs/fw-logs-formating-options.h:31
rapidxml::xml_document
Definition:
rapidxml.hpp:139
rapidxml::xml_node
Definition:
rapidxml.hpp:137
rapidxml
Definition:
rapidxml.hpp:57
librealsense::fw_logs::fw_logs_xml_helper
Definition:
src/fw-logs/fw-logs-xml-helper.h:13
fw-logs-formating-options.h
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:15