-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 0x83 when using json2rton; Add 0x83's 0x0 subset (fixed #15); Add…
… --noui option (closed #16); Small tweak RTON number converter
- Loading branch information
Showing
9 changed files
with
157 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#pragma once | ||
|
||
#include <fifo_map.hpp> | ||
#include <nlohmann/json.hpp> | ||
|
||
namespace reton { | ||
// https://github.com/nlohmann/json/issues/485 | ||
|
||
// A workaround to give to use fifo_map as map, we are just ignoring the 'less' compare | ||
template<class K, class V, class dummy_compare, class A> | ||
using workaround_fifo_map = nlohmann::fifo_map<K, V, nlohmann::fifo_map_compare<K>, A>; | ||
using fifo_json = nlohmann::basic_json<workaround_fifo_map>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#pragma once | ||
|
||
#include "include/json_fifo.hpp" | ||
#include "include/fifo_json.hpp" | ||
|
||
std::vector <uint8_t> encode_JSON(const json_fifo::json &js, std::unordered_map <std::string, uint64_t> &map_0x91, std::unordered_map <std::string, uint64_t> &map_0x93, std::size_t &pos, json_fifo::json &rton_info); | ||
std::vector <uint8_t> json2rton(const json_fifo::json &js, json_fifo::json &rton_info); | ||
std::vector <uint8_t> encode_JSON(const reton::fifo_json &js, std::size_t& pos, std::unordered_map <std::string, uint64_t> &map_0x91, std::unordered_map <std::string, uint64_t> &map_0x93, reton::fifo_json &rton_info); | ||
std::vector <uint8_t> json2rton(const reton::fifo_json &js, reton::fifo_json &rton_info); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#pragma once | ||
|
||
#include "include/json_fifo.hpp" | ||
#include "include/fifo_json.hpp" | ||
|
||
json_fifo::json decode_RTON(const std::vector <uint8_t> &byte_array, std::size_t &pos, std::vector<std::string> &array_0x91, std::vector<std::string> &array_0x93, json_fifo::json &rton_info); | ||
json_fifo::json rton2json(const std::vector <uint8_t> &byte_array, json_fifo::json &rton_info); | ||
reton::fifo_json decode_RTON(const std::vector <uint8_t> &byte_array, std::size_t &pos, std::vector<std::string> &array_0x91, std::vector<std::string> &array_0x93, reton::fifo_json &rton_info); | ||
reton::fifo_json rton2json(const std::vector <uint8_t> &byte_array, reton::fifo_json &rton_info); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.