liuzicheng1987
89a939705e
Added simple benchmarks for JSON; #70 ( #109 )
2024-06-01 17:35:27 +02:00
liuzicheng1987
1eed713fff
Added rfl::NoOptionals; resolved #100 ( #105 )
2024-05-26 21:32:00 +02:00
Laz
43ebb0bb24
Update wstring parser to remove needless null terminators ( #104 )
2024-05-24 21:58:22 +02:00
liuzicheng1987
adf8463527
Added rfl::Skip; resolves #99 ( #103 )
2024-05-21 18:13:42 +02:00
liuzicheng1987
579ec6e919
More efficient implementation of rfl::Result ( #102 )
2024-05-19 20:55:13 +02:00
liuzicheng1987
6bb95ff09b
More efficient way of parsing array-like data structures. ( #98 )
2024-05-07 20:43:04 +02:00
liuzicheng1987 and Patrick Urbanke
15f2c632dd
Added support for processors; resolves #67 ( #94 )
...
Co-authored-by: Patrick Urbanke <patrick@getml.com >
2024-05-01 20:08:06 +02:00
toge
bb3dc34eae
fix older msvc(19.36) compilation error ( #91 )
2024-04-23 18:25:23 +02:00
Patrick Urbanke
3f4def672e
Made sure we can read larger integers, fixes #85
2024-04-18 20:12:16 +02:00
Patrick Urbanke
62619d4a19
Better error messages for tagged unions
2024-04-16 00:48:43 +02:00
Patrick Urbanke
b38f12ecdf
More efficient way of parsing variants
2024-04-10 22:55:06 +02:00
Patrick Urbanke
23c5a603ae
Added more reliable checks in Parser_tagged_union
2024-04-01 13:31:14 +02:00
Patrick Urbanke
63e7bf3d81
Allow tagged unions with explicit tags
2024-03-31 14:37:34 +02:00
Patrick Urbanke
32ac265293
Made sure we can serialize and deserialize empty structs
2024-03-31 12:33:54 +02:00
Patrick Urbanke
4fa84ffd30
Bugfix and added test for shared_ptr
2024-03-31 11:14:58 +02:00
Patrick Urbanke
58d89e717c
Optimizationg for the reader and writer; #68
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
1e6bf03387
Minor bugfix in get_type_name
2024-03-03 17:13:15 +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
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