zerol
bd2cc44b8a
make json support out-of-box
2023-12-16 19:27:30 +08:00
zerol
359a21d905
ci
2023-12-16 00:31:02 +08:00
Patrick Urbanke
a547abd8c1
Added support for flag enums; handle unidentified enums
2023-12-14 19:38:52 +01:00
liuzicheng1987
79c24add9a
Merge pull request #20 from ChemiCalChems/reduce-boilerplate
...
Reduce boilerplate 2, electric boogaloo, and extras
2023-12-10 12:52:18 +01:00
Patrick Urbanke
7ab3026dbe
Fixed minor issues in the enum name extraction
2023-12-09 22:44:38 +01:00
Txema Ynzenga
28c602e195
Remove boilerplate to rfl::internal::to_ptr_field_tuple
...
Also ensure the same behavioral changes that happened to
move/copy_to_field_tuple are actual for to_ptr_field_tuple by wrapping
in fields if necessary
2023-12-09 21:50:37 +01:00
Txema Ynzenga
b86d2078e1
Remove boilerplate from rfl::internal::move_to_field_tuple
2023-12-09 21:21:10 +01:00
Txema Ynzenga
0a86ff352d
Remove boilerplate from rfl::internal::to_ptr_tuple
2023-12-09 21:05:56 +01:00
Txema Ynzenga
cc6e4351be
Add rfl::internal::bind_to_tuple
2023-12-09 21:05:56 +01:00
Patrick Urbanke
e416283e41
Added support for enums; #3
2023-12-09 13:27:57 +01:00
Patrick Urbanke
2c761efdcd
Included the meta field retrieval
2023-12-08 00:13:14 +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
243b40ca4c
Removed obsolete file
2023-12-06 23:27:55 +01:00
Patrick Urbanke
5e0de0246c
Added support for compile-time field name retrieval
2023-12-06 22:52:00 +01:00
Txema Ynzenga
ae58ddab5f
Remove boilerplate from rfl::internal::get_field_names
...
Also delete rfl::internal::get_field_name_ptrs, its previous purpose was
to store boilerplate but after the previous commit, and it only being
used in one place, it can be removed without issues
2023-12-06 17:47:11 +01:00
Txema Ynzenga
963465a0ab
Remove boilerplate in rfl::internal::get_field_name_ptrs
2023-12-06 17:33:23 +01:00
Txema Ynzenga
decaf003e2
Make rfl::internal::to_ptr_tuple constexpr
2023-12-06 17:31:12 +01:00
Txema Ynzenga
9944b743d0
Add rfl/internal/num_fields.hpp
2023-12-06 16:05:25 +01:00
Dirk Reinbach
264e1b6358
Fix pragma warning push/pop asymmetry
2023-12-05 14:09:18 +01:00
Patrick Urbanke
2e3872c651
Fixed -fsanitize=undefined issue; #16 , possibly #15
2023-12-04 20:16:09 +01:00
Patrick Urbanke
b84453a099
Disable false positives in MSVC compilation
2023-12-03 20:16:42 +01:00
Patrick Urbanke
c92f1d0b33
get_struct_name for MSVC
2023-12-03 17:38:25 +01:00
Patrick Urbanke
f2fb381063
Made sure that struct names can be retrieved on MSVC
2023-12-03 17:04:12 +01:00
Patrick Urbanke
1382a2a505
Compile the JSON tests separately
2023-12-03 16:52:24 +01:00
Patrick Urbanke
fc6da99f93
Minor fixes to the time stamps
2023-12-03 16:02:05 +01:00
Patrick Urbanke
38b7ac81c7
added a strptime implementation for MSVC
2023-12-02 23:05:41 +01:00
Patrick Urbanke
013325fcab
Minor tweaks to make sure things work on MSVC
2023-12-02 21:54:05 +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
abe7bd3546
Made sure that automatic field retrieval works in the context of tagged unions
2023-11-27 20:04:30 +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
b527faeebb
Added clang support for automatic field retrieval
2023-11-22 00:22:39 +01:00
Patrick Urbanke
f55f8e3b24
Retrieve field names for struct with arbitrary amount of fields
2023-11-21 21:49:03 +01:00
Patrick Urbanke
81c14ec63d
Added basic support for automated field name retrieval
2023-11-21 21:07:35 +01:00
Patrick Urbanke
7cdd1acc32
Treat numeric map types as keys; #14
2023-11-20 22:10:02 +01:00
Patrick Urbanke
6b857e1104
Added support for reading and writing into streams
2023-11-19 12:34:06 +01:00
Patrick Urbanke
d21782a8d8
Allow several conditions in the Validator, which will then be connected by AllOf
2023-11-18 22:49:18 +01:00
Patrick Urbanke
35904c584d
Made sure that validators can be used as keys
2023-11-18 22:22:29 +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
27263ee611
Added move_tuple_to_struct
2023-11-13 22:29:16 +01:00
Patrick Urbanke
d8faf14dc9
Added flatten_ptr_tuple
2023-11-13 21:28:47 +01:00
Patrick Urbanke
4792d596ee
Added compile-time checks disallowing pointers
2023-11-12 22:25:08 +01:00
Patrick Urbanke
992115c6a0
Added test_save_load for JSON
2023-11-12 20:51:00 +01:00
Patrick Urbanke
8d000e9db2
Added support for saving and loading
2023-11-12 20:41:15 +01:00
Patrick Urbanke
3ae75eb8a5
Added rfl::Variant
2023-11-12 16:46:46 +01:00
Patrick Urbanke
a68622e57f
Added tests for Ref, Box and custom constructors
2023-11-12 15:04:10 +01:00
Patrick Urbanke
629dd0c036
Added more tests
2023-11-12 00:08:56 +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