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"
6 
7 using namespace rapidxml;
8 
9 namespace fw_logger
10 {
12  {
13  public:
14  enum node_type
15  {
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;
43  std::vector<char> _document_buffer;
44  };
45 }
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