terminal-parser.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "core/extension.h"
7 #include "device.h"
8 #include <vector>
9 #include "../common/parser.hpp"
10 
11 namespace librealsense
12 {
14  {
15  public:
16  terminal_parser(const std::string& xml_content);
17 
18 
19  std::vector<uint8_t> parse_command(const std::string& command) const;
20 
21  std::vector<uint8_t> parse_response(const std::string& command,
22  const std::vector<uint8_t>& response) const;
23 
24  private:
26  std::vector<std::string>& params) const;
27  std::vector<uint8_t> build_raw_command_data(const command_from_xml& command,
28  const std::vector<std::string>& params) const;
29 
30  std::map<std::string, xml_parser_function> _format_type_to_lambda;
32  };
33 
34 }
void get_command_and_params_from_input(const std::string &line, command_from_xml &command, std::vector< std::string > &params) const
std::vector< uint8_t > parse_command(const std::string &command) const
std::map< std::string, xml_parser_function > _format_type_to_lambda
GLsizei const GLchar *const * string
GLenum const GLfloat * params
terminal_parser(const std::string &xml_content)
std::vector< uint8_t > parse_response(const std::string &command, const std::vector< uint8_t > &response) const
std::vector< uint8_t > build_raw_command_data(const command_from_xml &command, const std::vector< std::string > &params) const


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