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"
6 
7 using namespace rapidxml;
8 
9 namespace librealsense
10 {
11  namespace fw_logs
12  {
14  {
15  public:
16  enum node_type
17  {
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;
45  std::vector<char> _document_buffer;
46  };
47  }
48 }
GLsizei const GLchar *const * string
void init(void)
Definition: boing.c:180


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:15