Commit Graph
75 Commits
Author SHA1 Message Date
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
Laz 68cdfa8dd4 feat: add support for parsing std::wstrings 2024-02-11 13:04:36 +00:00
Patrick Urbanke f2d977909c Added CBOR support; #53 2024-01-26 06:48:39 +01:00
Patrick Urbanke 151e606264 Made sure that to_map returns a result 2024-01-17 05:31:23 +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 fe441a2d9d Apply 'composition over inheritance' to rfl::Array 2024-01-03 16:56:40 +01:00
Patrick Urbanke e01ff0b3b1 Some more adaptations 2024-01-03 16:40:43 +01:00
Patrick Urbanke 7a5b53b85d Replaced all decay_t with cvref_t 2024-01-03 15:50:52 +01:00
Patrick Urbanke 11c80d4e89 Resolved merge conflicts 2024-01-03 15:49:14 +01:00
Patrick Urbanke 5c81e40f09 Redesigned the writer (#36) and added YAML support based on the new writer (#23) 2024-01-03 07:22:36 +01:00
hazby2002 c6d3012510 Remove Result<c-array>. 2024-01-02 18:17:32 +08:00
hazby2002 804e0ed868 Wrap C arrays with rfl::Array. 2024-01-02 15:27:11 +08:00
hazby2002 12007f3eab Add tests for writing c arrays. 2024-01-02 13:49:02 +08:00
hazby2002 fe956b3779 Implement read operation of Parser for c-arrays. 2024-01-02 13:38:51 +08:00
hazby2002 df26f6df6c Implement write operation of Parser for c-arrays. 2024-01-02 13:35:33 +08:00
hazby2002 2d45ddfdc8 Change all decay to remove_cvref. 2023-12-29 17:05:16 +08:00
Patrick Urbanke 07942bb64d Added more tests and more includes 2023-12-28 21:00:57 +01:00
liuzicheng1987 092f07fd43 Merge branch 'main' into 41-missing-headers 2023-12-28 20:28:25 +01:00
GregTheMadMonk f031b35452 Fix #41: add an include and a fordward declaration 2023-12-28 21:01:25 +03:00
Txema Ynzenga c5e5815e73 Change project includes to relative 2023-12-23 01:04:57 +01:00
Patrick Urbanke 54469a88a5 Use old way of handling reflection types 2023-12-21 23:24:11 +01:00
Patrick Urbanke be7b1932a5 Made sure that attributes are written properly 2023-12-21 22:43:32 +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 fd92304a1c Minor bugfix: Make sure that is_required is maintained inside Rename 2023-11-29 20:44:02 +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