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

#include <fw-string-formatter.h>

Public Member Functions

 fw_string_formatter (std::unordered_map< std::string, std::vector< std::pair< int, std::string >>> enums)
 
bool generate_message (const std::string &source, size_t num_of_params, const uint32_t *params, std::string *dest)
 
 ~fw_string_formatter (void)
 

Private Member Functions

bool replace_params (const std::string &source, const std::map< std::string, std::string > &exp_replace_map, const std::map< std::string, int > &enum_replace_map, std::string *dest)
 

Private Attributes

std::unordered_map< std::string, std::vector< std::pair< int, std::string > > > _enums
 

Detailed Description

Definition at line 14 of file fw-string-formatter.h.

Constructor & Destructor Documentation

librealsense::fw_logs::fw_string_formatter::fw_string_formatter ( std::unordered_map< std::string, std::vector< std::pair< int, std::string >>>  enums)

Definition at line 16 of file fw-string-formatter.cpp.

librealsense::fw_logs::fw_string_formatter::~fw_string_formatter ( void  )

Definition at line 22 of file fw-string-formatter.cpp.

Member Function Documentation

bool librealsense::fw_logs::fw_string_formatter::generate_message ( const std::string source,
size_t  num_of_params,
const uint32_t params,
std::string dest 
)

Definition at line 26 of file fw-string-formatter.cpp.

bool librealsense::fw_logs::fw_string_formatter::replace_params ( const std::string source,
const std::map< std::string, std::string > &  exp_replace_map,
const std::map< std::string, int > &  enum_replace_map,
std::string dest 
)
private

Definition at line 73 of file fw-string-formatter.cpp.

Member Data Documentation

std::unordered_map<std::string, std::vector<std::pair<int, std::string> > > librealsense::fw_logs::fw_string_formatter::_enums
private

Definition at line 25 of file fw-string-formatter.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