Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
librealsense::fw_logs::fw_logs_xml_helper Class Reference

#include <fw-logs-xml-helper.h>

Public Types

enum  node_type {
  event, file, thread, enums,
  none
}
 

Public Member Functions

bool build_log_meta_data (fw_logs_formating_options *logs_formating_options)
 
 fw_logs_xml_helper (std::string xml_content)
 
 ~fw_logs_xml_helper (void)
 

Private Member Functions

bool build_meta_data_structure (xml_node<> *xml_node_list_of_events, fw_logs_formating_options *logs_formating_options)
 
bool get_enum_name_node (xml_node<> *node_file, int *thread_id, std::string *thread_name)
 
bool get_enum_value_node (xml_node<> *node_file, int *thread_id, std::string *enum_name)
 
bool get_event_node (xml_node<> *node_event, int *event_id, int *num_of_params, std::string *line)
 
bool get_file_node (xml_node<> *node_file, int *file_id, std::string *file_name)
 
node_type get_next_node (xml_node<> *xml_node_list_of_events, int *id, int *num_of_params, std::string *line)
 
bool get_root_node (xml_node<> **node)
 
bool get_thread_node (xml_node<> *node_file, int *thread_id, std::string *thread_name)
 
bool init ()
 
bool try_load_external_xml ()
 

Private Attributes

std::vector< char > _document_buffer
 
bool _init_done
 
std::string _xml_content
 
xml_document _xml_doc
 

Detailed Description

Definition at line 13 of file src/fw-logs/fw-logs-xml-helper.h.

Member Enumeration Documentation

Enumerator
event 
file 
thread 
enums 
none 

Definition at line 16 of file src/fw-logs/fw-logs-xml-helper.h.

Constructor & Destructor Documentation

librealsense::fw_logs::fw_logs_xml_helper::fw_logs_xml_helper ( std::string  xml_content)

Definition at line 15 of file src/fw-logs/fw-logs-xml-helper.cpp.

librealsense::fw_logs::fw_logs_xml_helper::~fw_logs_xml_helper ( void  )

Definition at line 21 of file src/fw-logs/fw-logs-xml-helper.cpp.

Member Function Documentation

bool librealsense::fw_logs::fw_logs_xml_helper::build_log_meta_data ( fw_logs_formating_options logs_formating_options)

Definition at line 67 of file src/fw-logs/fw-logs-xml-helper.cpp.

bool librealsense::fw_logs::fw_logs_xml_helper::build_meta_data_structure ( xml_node<> *  xml_node_list_of_events,
fw_logs_formating_options logs_formating_options 
)
private

Definition at line 95 of file src/fw-logs/fw-logs-xml-helper.cpp.

bool librealsense::fw_logs::fw_logs_xml_helper::get_enum_name_node ( xml_node<> *  node_file,
int *  thread_id,
std::string thread_name 
)
private

Definition at line 194 of file src/fw-logs/fw-logs-xml-helper.cpp.

bool librealsense::fw_logs::fw_logs_xml_helper::get_enum_value_node ( xml_node<> *  node_file,
int *  thread_id,
std::string enum_name 
)
private

Definition at line 212 of file src/fw-logs/fw-logs-xml-helper.cpp.

bool librealsense::fw_logs::fw_logs_xml_helper::get_event_node ( xml_node<> *  node_event,
int *  event_id,
int *  num_of_params,
std::string line 
)
private

Definition at line 279 of file src/fw-logs/fw-logs-xml-helper.cpp.

bool librealsense::fw_logs::fw_logs_xml_helper::get_file_node ( xml_node<> *  node_file,
int *  file_id,
std::string file_name 
)
private

Definition at line 255 of file src/fw-logs/fw-logs-xml-helper.cpp.

fw_logs_xml_helper::node_type librealsense::fw_logs::fw_logs_xml_helper::get_next_node ( xml_node<> *  xml_node_list_of_events,
int *  id,
int *  num_of_params,
std::string line 
)
private

Definition at line 167 of file src/fw-logs/fw-logs-xml-helper.cpp.

bool librealsense::fw_logs::fw_logs_xml_helper::get_root_node ( xml_node<> **  node)
private

Definition at line 26 of file src/fw-logs/fw-logs-xml-helper.cpp.

bool librealsense::fw_logs::fw_logs_xml_helper::get_thread_node ( xml_node<> *  node_file,
int *  thread_id,
std::string thread_name 
)
private

Definition at line 230 of file src/fw-logs/fw-logs-xml-helper.cpp.

bool librealsense::fw_logs::fw_logs_xml_helper::init ( )
private

Definition at line 61 of file src/fw-logs/fw-logs-xml-helper.cpp.

bool librealsense::fw_logs::fw_logs_xml_helper::try_load_external_xml ( )
private

Definition at line 37 of file src/fw-logs/fw-logs-xml-helper.cpp.

Member Data Documentation

std::vector<char> librealsense::fw_logs::fw_logs_xml_helper::_document_buffer
private

Definition at line 45 of file src/fw-logs/fw-logs-xml-helper.h.

bool librealsense::fw_logs::fw_logs_xml_helper::_init_done
private

Definition at line 42 of file src/fw-logs/fw-logs-xml-helper.h.

std::string librealsense::fw_logs::fw_logs_xml_helper::_xml_content
private

Definition at line 43 of file src/fw-logs/fw-logs-xml-helper.h.

xml_document librealsense::fw_logs::fw_logs_xml_helper::_xml_doc
private

Definition at line 44 of file src/fw-logs/fw-logs-xml-helper.h.


The documentation for this class was generated from the following files:


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