Commit Graph
62 Commits
Author SHA1 Message Date
Dr. Patrick Urbanke (劉自成) 192a74e04f Added rfl::DefaultVal, resolves #534 (#553) 2025-12-05 01:13:33 +01:00
Dr. Patrick Urbanke (劉自成) f6762227c7 Added support for std::span; resolves #457 (#468) 2025-07-20 18:14:33 +02:00
Brett Jia 372345888c Serialize/Deserialize vector<char> as bytestring (#466) 2025-07-20 12:57:37 +02:00
Dr. Patrick Urbanke (劉自成) d675bfabb6 Added a separate parser for the Bytestring to avoid it being serialized as an array; #407 (#408) 2025-04-16 05:26:21 +08:00
Dr. Patrick Urbanke (劉自成) ef0b0b4729 Added support for std::chrono::duration; fixes #399 2025-04-14 00:15:26 +08:00
Dr. Patrick Urbanke (劉自成) b6651a4062 Added support for std::system::filepath; #166 (#169) 2024-08-01 23:16:05 +02:00
Dr. Patrick Urbanke (劉自成) 9c9eceab92 Added rfl::Tuple (#160) 2024-07-28 15:35:38 +02:00
liuzicheng1987 adf8463527 Added rfl::Skip; resolves #99 (#103) 2024-05-21 18:13:42 +02:00
Patrick Urbanke d1a9bc6b61 Added the JSON schema; #25 2024-03-03 07:09:28 +01:00
Laz 68cdfa8dd4 feat: add support for parsing std::wstrings 2024-02-11 13:04:36 +00:00
hazby2002 804e0ed868 Wrap C arrays with rfl::Array. 2024-01-02 15:27:11 +08:00
hazby2002 df26f6df6c Implement write operation of Parser for c-arrays. 2024-01-02 13:35:33 +08:00
Txema Ynzenga c5e5815e73 Change project includes to relative 2023-12-23 01:04:57 +01:00
Patrick Urbanke c5347eee28 Added XML support; #21 2023-12-20 21:07:36 +01:00
Ed Catmur f429bd994a Serialization of std::reference_wrapper
Only for serialization - similarly to pointers, this should not be used for deserialization.

As discussed https://github.com/getml/reflect-cpp/pull/20#issuecomment-1857491501 this requires changing the implementation of bind_to_tuple, since std::ref() collapses on a std::reference_wrapper.
2023-12-16 05:31:13 +00:00
Patrick Urbanke a547abd8c1 Added support for flag enums; handle unidentified enums 2023-12-14 19:38:52 +01:00
Patrick Urbanke e416283e41 Added support for enums; #3 2023-12-09 13:27:57 +01:00
Patrick Urbanke 385f6434c5 Make sure that we can retrieve the type names and tags at compile time 2023-12-07 23:18:06 +01:00
Patrick Urbanke 5e0de0246c Added support for compile-time field name retrieval 2023-12-06 22:52:00 +01:00
Patrick Urbanke 456fc33613 Added support for tagged unions without explicitly tagging the structs 2023-11-28 19:09:14 +01:00
Patrick Urbanke ac244c082d Added more features to the automated field name retrieval 2023-11-27 19:51:30 +01:00
Patrick Urbanke 5e6682df5d Began developing the StructParser 2023-11-23 19:45:18 +01:00
Patrick Urbanke 7cdd1acc32 Treat numeric map types as keys; #14 2023-11-20 22:10:02 +01:00
Patrick Urbanke cfcc388480 rfl::Literal can now be used as a key in maps 2023-11-18 16:41:18 +01:00
Patrick Urbanke 23eaad1629 Added support for struct flattening in anonymous fields 2023-11-15 00:49:19 +01:00
Patrick Urbanke 3ae75eb8a5 Added rfl::Variant 2023-11-12 16:46:46 +01:00
Patrick Urbanke 2a948e809a Using std::optional in the fields array; fixes the test and increases safety 2023-11-11 23:33:15 +01:00
Patrick Urbanke c206699f64 Removed type names with leading underscore followed by capital letter; #9 2023-11-11 14:11:29 +01:00
Patrick Urbanke 5694c24727 Allow for additional optional fields in std::tuple 2023-11-08 21:59:18 +01:00
Patrick Urbanke 540af2d0cb Merge branch 'main' of github.com:getml/reflect-cpp 2023-11-08 21:32:44 +01:00
Patrick Urbanke 63a9de90b3 Added thread-safe memoization 2023-11-08 21:32:31 +01:00
Patrick Urbanke 91cba55edb Added reading and writing for anonymous fields 2023-11-06 21:10:03 +01:00
Patrick Urbanke 57dad0df3f Began implementing support for anonymous structs 2023-11-05 20:09:29 +01:00
Patrick Urbanke 6bf95a3c20 Minor code beautifications 2023-11-05 12:10:18 +01:00
Patrick Urbanke f9a16641c9 Added support for parsing results 2023-11-05 11:38:33 +01:00
Patrick Urbanke 463fa175fc Parse Literal in terms of the ReflectionType 2023-10-31 18:34:29 +01:00
Patrick Urbanke d0a66a673d Better error message for unsupported types 2023-10-30 17:50:35 +01:00
Patrick Urbanke fe1b2d141e Removed unnecessary indirection 2023-10-21 22:41:36 +02:00
Patrick Urbanke 4fb6243d6f Refined the concepts and added comments 2023-10-21 21:58:45 +02:00
Patrick Urbanke fa5c8fd998 Added concepts and constraints for the Parser 2023-10-21 18:24:44 +02:00
Patrick Urbanke ea3ce3632c Added support for better error messages 2023-10-21 14:19:32 +02:00
Patrick Urbanke 2d3d6340eb Use move semantics for std::shared_ptr and rfl::Box 2023-10-19 22:35:18 +02:00
Patrick Urbanke d6c4622b55 Move keys 2023-10-17 00:30:26 +02:00
Patrick Urbanke 4c020e7e82 Using std::array instead of std::vector for retrieving the fields 2023-10-15 14:29:41 +02:00
Patrick Urbanke 383dde14f5 Use string_view to compare the fields 2023-10-15 13:45:07 +02:00
Patrick Urbanke f34bdd76b9 Optimized the reading of the named tuples using field indices 2023-10-14 20:35:59 +02:00
Patrick Urbanke 7129e5a2ce Revert "Build NamedTuple non-recursively"
This reverts commit 3db0bbb065.
2023-10-11 21:54:05 +02:00
Patrick Urbanke 3db0bbb065 Build NamedTuple non-recursively 2023-10-11 21:50:05 +02:00
Patrick Urbanke 94b8ab368b Added tests for string map and string unordered map 2023-10-10 23:14:25 +02:00
Patrick Urbanke 5198a446aa Added support for various containers 2023-10-10 21:37:02 +02:00