Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
tools
fw-logger
tools/fw-logger/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
fw_logger
10
{
11
class
fw_logs_xml_helper
12
{
13
public
:
14
enum
node_type
15
{
16
event
,
17
file
,
18
thread
,
19
enums
,
20
none
21
};
22
23
fw_logs_xml_helper
(
std::string
xml_full_file_path);
24
~
fw_logs_xml_helper
(
void
);
25
26
bool
build_log_meta_data(
fw_logs_formating_options
* logs_formating_options);
27
28
private
:
29
bool
init
();
30
bool
build_meta_data_structure(
xml_node<>
*xml_node_list_of_events,
fw_logs_formating_options
* logs_formating_options);
31
node_type
get_next_node(
xml_node<>
* xml_node_list_of_events,
int
*
id
,
int
* num_of_params,
std::string
*
line
);
32
bool
get_thread_node(
xml_node<>
* node_file,
int
* thread_id,
std::string
* thread_name);
33
bool
get_event_node(
xml_node<>
* node_event,
int
* event_id,
int
* num_of_params,
std::string
*
line
);
34
bool
get_enum_name_node(
xml_node<>
* node_file,
int
* thread_id,
std::string
* thread_name);
35
bool
get_enum_value_node(
xml_node<>
* node_file,
int
* thread_id,
std::string
* enum_name);
36
bool
get_file_node(
xml_node<>
* node_file,
int
* file_id,
std::string
*
file_name
);
37
bool
get_root_node(
xml_node<>
**node);
38
bool
try_load_external_xml();
39
40
bool
_init_done
;
41
std::string
_xml_full_file_path
;
42
xml_document<>
_xml_doc
;
43
std::vector<char>
_document_buffer
;
44
};
45
}
fw_logger::fw_logs_formating_options
Definition:
tools/fw-logger/fw-logs-formating-options.h:28
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
fw_logger::fw_logs_xml_helper::_document_buffer
std::vector< char > _document_buffer
Definition:
tools/fw-logger/fw-logs-xml-helper.h:43
fw_logger::fw_logs_xml_helper::node_type
node_type
Definition:
tools/fw-logger/fw-logs-xml-helper.h:14
fw_logger::fw_logs_xml_helper::_init_done
bool _init_done
Definition:
tools/fw-logger/fw-logs-xml-helper.h:40
fw_logger::fw_logs_xml_helper
Definition:
tools/fw-logger/fw-logs-xml-helper.h:11
fw_logger::fw_logs_xml_helper::_xml_full_file_path
std::string _xml_full_file_path
Definition:
tools/fw-logger/fw-logs-xml-helper.h:41
fw_logger::fw_logs_xml_helper::enums
Definition:
tools/fw-logger/fw-logs-xml-helper.h:19
init
void init(void)
Definition:
boing.c:180
fw_logger::fw_logs_xml_helper::event
Definition:
tools/fw-logger/fw-logs-xml-helper.h:16
fw_logger::fw_logs_xml_helper::_xml_doc
xml_document _xml_doc
Definition:
tools/fw-logger/fw-logs-xml-helper.h:42
fw_logger::fw_logs_xml_helper::file
Definition:
tools/fw-logger/fw-logs-xml-helper.h:17
fw_logger::fw_logs_xml_helper::thread
Definition:
tools/fw-logger/fw-logs-xml-helper.h:18
fw_logger
Definition:
tools/fw-logger/fw-log-data.cpp:14
rapidxml::xml_document
Definition:
rapidxml.hpp:139
rapidxml::xml_node
Definition:
rapidxml.hpp:137
rapidxml
Definition:
rapidxml.hpp:57
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