Public Member Functions | Private Member Functions | Private Attributes | List of all members
fw_logger::string_formatter Class Reference

#include <string-formatter.h>

Public Member Functions

bool generate_message (const std::string &source, size_t num_of_params, const uint32_t *params, std::string *dest)
 
 string_formatter (std::unordered_map< std::string, std::vector< std::pair< int, std::string >>> enums)
 
 ~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 12 of file string-formatter.h.

Constructor & Destructor Documentation

fw_logger::string_formatter::string_formatter ( std::unordered_map< std::string, std::vector< std::pair< int, std::string >>>  enums)

Definition at line 14 of file string-formatter.cpp.

fw_logger::string_formatter::~string_formatter ( void  )

Definition at line 20 of file string-formatter.cpp.

Member Function Documentation

bool fw_logger::string_formatter::generate_message ( const std::string source,
size_t  num_of_params,
const uint32_t params,
std::string dest 
)

Definition at line 24 of file string-formatter.cpp.

bool fw_logger::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 71 of file string-formatter.cpp.

Member Data Documentation

std::unordered_map<std::string, std::vector<std::pair<int, std::string> > > fw_logger::string_formatter::_enums
private

Definition at line 23 of file 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:36