Commit Graph
452 Commits
Author SHA1 Message Date
Patrick Urbanke 58d89e717c Optimizationg for the reader and writer; #68 v0.8.0 2024-03-16 09:58:26 +01:00
Patrick Urbanke 54785ec893 Use std::string_view for the field names during the write process 2024-03-10 16:32:53 +01:00
Patrick Urbanke 2e5f0737a9 Fixed from_named_tuple 2024-03-06 16:25:33 +01:00
Patrick Urbanke 58f1e41c83 Added support for monadic operations on the named tuples 2024-03-06 14:21:33 +01:00
Patrick Urbanke 1e6bf03387 Minor bugfix in get_type_name 2024-03-03 17:13:15 +01:00
Patrick Urbanke eaa715362c Added explanatory notes for clang on windows 2024-03-03 11:08:29 +01:00
Patrick Urbanke 7f2be9b7cb Added more convenient read functions; #65 2024-03-03 10:59:18 +01:00
Patrick Urbanke 54ffdbc9e9 Split up the enum tests 2024-03-03 10:33:22 +01:00
Patrick Urbanke 091ce65693 Split up test_view 2024-03-03 09:35:52 +01:00
Patrick Urbanke c307c74cd6 Added a to_schema method to the CustomParser 2024-03-03 08:42:11 +01:00
Patrick Urbanke d1a9bc6b61 Added the JSON schema; #25 2024-03-03 07:09:28 +01:00
Patrick Urbanke 6c87c10e33 Fixed typo in the README 2024-03-03 06:02:15 +01:00
liuzicheng1987 02bfedf52b Merge pull request #66 from grandseiken/main
Add helpers for inspecting enum types
2024-03-03 01:22:59 +08:00
stu 0b2f5d2a13 clang-format 2024-03-01 19:25:46 +00:00
stu 1358223955 add small section to README 2024-03-01 19:23:32 +00:00
stu ec437c51f2 add documentation for new enumerator functionality 2024-03-01 19:19:48 +00:00
stu 617226cd1d rename to get_underlying_enumerators 2024-03-01 19:02:51 +00:00
stu cdca9ac73a add get_enumerators_underlying and get_enumerator_array_underlying 2024-03-01 18:59:47 +00:00
stu c76e7a6471 add rfl::get_enumerators() and rfl::get_enumerator_array() 2024-02-22 15:24:20 +00:00
stu a1fb54f4ac add rfl::enum_to_string and rfl::string_to_enum 2024-02-22 13:57:09 +00:00
Patrick Urbanke 87cad26654 Support for pretty JSON; #63 2024-02-17 02:58:05 +01:00
liuzicheng1987 70b63a7875 Merge pull request #63 from Lazrius/main
fix: handle wstrings being different lengths and constructed correctly
2024-02-14 09:07:20 +08:00
Laz bb94793da8 Update Parser_wstring.hpp 2024-02-13 23:27:51 +00:00
Laz f588908433 fix: handle wstrings being different lengths and constructed correctly 2024-02-13 23:23:07 +00:00
liuzicheng1987 644d93f5c2 Merge pull request #61 from Lazrius/main
feat: add support for parsing std::wstrings
2024-02-12 15:19:42 +08:00
Laz 68cdfa8dd4 feat: add support for parsing std::wstrings 2024-02-11 13:04:36 +00:00
liuzicheng1987 c1e5875806 Merge pull request #59 from grandseiken/main
add rfl::NamedTuple::apply() for convenient compile-time iteration
2024-02-08 08:23:00 +08:00
stu 34c36d9b97 slight rework
clang on linux doesn't believe field.name() can be constexpr, so
fall back to Field::name() when constexpr is required.
2024-02-07 13:08:17 +00:00
stu fb0dd371b3 add rfl::NamedTuple::apply() for convenient compile-time iteration 2024-02-07 12:31:45 +00:00
liuzicheng1987 70b8c0b558 Merge pull request #57 from grandseiken/main
Make library work on clang on windows
2024-02-07 00:23:07 +08:00
stu dd8118637c fix use of std::source_location on windows clang 2024-02-06 13:59:09 +00:00
Patrick Urbanke 5b7dab4a67 Version 0.7.0 v0.7.0 2024-01-27 14:32:16 +01:00
Patrick Urbanke f2d977909c Added CBOR support; #53 2024-01-26 06:48:39 +01:00
Patrick Urbanke 5a34c9bea8 Added BSON support; #22 2024-01-19 16:09:26 +01:00
Patrick Urbanke 151e606264 Made sure that to_map returns a result 2024-01-17 05:31:23 +01:00
liuzicheng1987 5fb4d6a785 Merge pull request #49 from melton1968/main
Two tiny changes to fix compilation errors on the clang / Dawwin platform.
2024-01-13 23:59:44 +08:00
Mark Melton 6a65d01a26 Two small fixes for clang/Darwin build
On clang/Darwin, the array member `arr_` in StringLiteral was not
considered initalized when constructed using "". Adding default
initialization fixed the issue.

On clang/Darwin, std::string was not defined in Result.hpp. Including
<string> fixed the issue.
2024-01-12 16:43:13 -05:00
liuzicheng1987 cc3460cee7 Update structs.md because you now can declare them inside functions 2024-01-08 08:28:14 +08:00
Patrick Urbanke 05b6955358 Added missing header; #46 2024-01-07 23:09:00 +01:00
Patrick Urbanke 696289dbf2 Made sure that we can get field names from structs declared inside functions or unnamed namespaces; #46 2024-01-07 23:05:39 +01:00
Patrick Urbanke 30adc5c614 Version 0.6.0 v0.6.0 2024-01-05 01:29:36 +01:00
Patrick Urbanke bf60ca0c86 Merge branch 'hazby2002-main' 2024-01-05 00:56:14 +01:00
Patrick Urbanke 5e9a660fa2 Fixed return type 2024-01-04 22:19:52 +01:00
Patrick Urbanke b63c246f92 Made sure that to_named_tuple (and, by extension, rfl::replace) works properly 2024-01-04 21:49:25 +01:00
Patrick Urbanke 03f6f2ef44 Moved Array.hpp and wrap_in_rfl_array_t into internal 2024-01-04 04:39:36 +01:00
Patrick Urbanke a89cca0a94 Added explanatory comments to num_fields.hpp 2024-01-04 04:14:42 +01:00
Patrick Urbanke f4d2cf57d7 Simplified flatten_c_arrays 2024-01-03 23:13:33 +01:00
Patrick Urbanke f9f5cc7792 Got rid of stray OutputValue.hpp 2024-01-03 17:43:50 +01:00
Patrick Urbanke d6f3fa510d Got rid of the reinterpret_casts 2024-01-03 17:40:42 +01:00
Patrick Urbanke fe441a2d9d Apply 'composition over inheritance' to rfl::Array 2024-01-03 16:56:40 +01:00