#include <string>
#include <map>
#include <fstream>
#include <sstream>
#include <vector>
#include <functional>
#include <cstring>
#include "../third-party/rapidxml/rapidxml.hpp"
Go to the source code of this file.
|
void | check_section_size (unsigned section_size, unsigned struct_size, const std::string §ion_name, const std::string &struct_name) |
|
void | decode_string_from_raw_data (const command_from_xml &command, const std::map< std::string, custom_formatter > &custom_formatters, const uint8_t *raw_data_offset, size_t data_size, std::string &output, const std::map< std::string, xml_parser_function > &format_type_to_lambda) |
|
void | encode_raw_data_command (const command_from_xml &xml_cmd_info, const std::vector< parameter > ¶ms, std::vector< uint8_t > &raw_data) |
|
std::string | hexify (unsigned char n) |
|
bool | parse_xml_from_file (const std::string &xml_full_file_path, commands_xml &cmd_xml) |
|
void | parse_xml_from_memory (const char *content, commands_xml &cmd_xml) |
|
bool | string_to_bool (const std::string &x) |
|
unsigned int | string_to_hex (std::string str) |
|
std::string | to_lower (std::string x) |
|
void | update_format_type_to_lambda (std::map< std::string, xml_parser_function > &format_type_to_lambda) |
|
void | update_sections_data (const uint8_t *data_offset, std::vector< section > §ions, const std::map< std::string, custom_formatter > &custom_formatters, const std::map< std::string, xml_parser_function > &format_type_to_lambda) |
|
Enumerator |
---|
Byte |
|
Word |
|
Double |
|
Definition at line 185 of file parser.hpp.
void check_section_size |
( |
unsigned |
section_size, |
|
|
unsigned |
struct_size, |
|
|
const std::string & |
section_name, |
|
|
const std::string & |
struct_name |
|
) |
| |
|
inline |
const uint16_t HW_MONITOR_BUFFER_SIZE = 1024 |