fw-string-formatter.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 <string>
5 #include <map>
6 #include <stdint.h>
7 #include <vector>
8 #include <unordered_map>
9 
10 namespace librealsense
11 {
12  namespace fw_logs
13  {
15  {
16  public:
17  fw_string_formatter(std::unordered_map<std::string, std::vector<std::pair<int, std::string>>> enums);
19 
20  bool generate_message(const std::string& source, size_t num_of_params, const uint32_t* params, std::string* dest);
21 
22  private:
23  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);
24 
25  std::unordered_map<std::string, std::vector<std::pair<int, std::string>>> _enums;
26  };
27  }
28 }
std::unordered_map< std::string, std::vector< std::pair< int, std::string > > > _enums
fw_string_formatter(std::unordered_map< std::string, std::vector< std::pair< int, std::string >>> enums)
GLsizei const GLchar *const * string
unsigned int uint32_t
Definition: stdint.h:80
GLenum const GLfloat * params
bool generate_message(const std::string &source, size_t num_of_params, const uint32_t *params, std::string *dest)
GLsizei GLsizei GLchar * source
LZ4LIB_API char * dest
Definition: lz4.h:438
Definition: enums.py:1
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)


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