reflecxx
A static reflection framework for C++, using libclang. (by jimmyorourke)
metacpp
Meta C++ Library and Tool (by RamblingMadMan)
reflecxx | metacpp | |
---|---|---|
5 | 6 | |
55 | 78 | |
- | - | |
10.0 | 0.0 | |
about 2 years ago | over 1 year ago | |
Python | C++ | |
MIT License | Mozilla Public License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
reflecxx
Posts with mentions or reviews of reflecxx.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-19.
- I implement a fast, macro-based namedtuple works under C++11
- reflecxx: A static reflection library framework and tooling. Auto serialization and more.
-
Unable to use asio.hpp when using conan
I haven't used the cmake_find_package generator much myself. People like it because it lets you write your cmake in a mostly conan agnostic way. If you don't care about that, I find the plain cmake generator much easier to use. You can inspect the generated conanbuildinfo.cmake file to see the targets, and call conan_basic_setup(TARGETS ). Then you link against targets that look like CONAN_PKG::boost or similar. I usually wrap conan setup in a cmake utility file like this: https://github.com/jimmyorourke/reflecxx/blob/main/test/cmake/ConanSetup.cmake
-
Is there any good binary serializer & deserializer for C / C++?
I have a library and tooling that using code generation will allow you to automatically generate serialization/deserialization to your custom binary format. It uses the visitor pattern and code generation for static reflection (eg iterating over fields of a struct). Check it out at https://github.com/jimmyorourke/reflecxx. Particularly it includes an automatic to/from json, which you could use as a starting point for how to write your own visitor.
-
figcone - Read JSON, YAML, TOML, XML or INI configuration by declaring a struct
You might be interested in a project I've put together that uses libclang to generate static reflection metadata that can then be used for generic parsing or serialization: https://github.com/jimmyorourke/reflecxx. It has examples of automatic to/from json.
metacpp
Posts with mentions or reviews of metacpp.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-19.
-
I implement a fast, macro-based namedtuple works under C++11
https://github.com/RamblingMadMan/metacpp Need C++17 and attributes, libclang, boost...
-
Adding reflection to C++ just to make a game work
I had a similar journey while working on my own custom game engine! I managed to persevere with "plan C" (or whichever was using libclang); after trying out cppast and getting severe NIH syndrome, I ended up with this: metacpp. Do not recommend.
-
metapp - C++ open source library for runtime reflection and variant
Awesome work; I nearly mistook the title for my own library metacpp haha
-
Mock "anything" in C++ without Dependency Injection (text tutorial in comment)
I recall such a library: https://github.com/RamblingMadMan/metacpp. But still, as long as reflection in not included in standard it is no-go for me. :/
-
Meta C++ Reflection Tool and Library - Initial Release
To see some of the features, example usage and to get it yourself; check out the repo on GitHub: https://github.com/RamblingMadMan/metacpp
- Tried my hand at creating a reflection library for C++17
What are some alternatives?
When comparing reflecxx and metacpp you can also consider the following projects:
miroir - C++20 compile-time reflection library.
tsmp
namedtuple - Implementation of super-fast C++-styled namedtuple, for compile-time reflection.
metapp - C++ runtime reflection library
TextLayoutSampler - Utility to display text via multiple Windows API's simultaneously (D2D, DWrite, GDI, GDI+).
cppast - Library to parse and work with the C++ AST
Protobuf - Protocol Buffers - Google's data interchange format
C++ Format - A modern formatting library
Bitsery - Your binary serialization library
cista - Cista is a simple, high-performance, zero-copy C++ serialization & reflection library.