Tbl
Magic Enum C++
Our great sponsors
Tbl | Magic Enum C++ | |
---|---|---|
4 | 44 | |
13 | 4,403 | |
- | - | |
0.0 | 8.1 | |
over 1 year ago | 12 days ago | |
C++ | C++ | |
MIT License | MIT License |
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.
Tbl
-
How can I prevent or remove the auto generated files from CMake, since I have a lot of sub directories and it is very messy. Thanks!
I use a set of scripts to automatically generate a /Build folder and generate the CMake projects and files inside that folder.
-
Turning CSV rows into a vector of maps, with column names as keys
If you'd like to see a small C++ CSV parser, you're welcome to take a look at my Tbl library, which does something similar to what you're asking. It's open source, so feel free to use it as a reference or starting point.
-
Building a game with localization in mind?
For text, spreadsheets are preferred, because that's what localization teams will want to work with. You can then export them to a CSV text file, and read them with something like this. Or, you can convert to JSON if you prefer. But I wouldn't author it in JSON.
-
A small CSV library
If you're interested, I've got a CSV reader I wrote a while ago, so you can see how I set up some unit tests using CMake. The two test libraries I mentioned both work very similarly, and are quite simple to use once you get the hang of it.
Magic Enum C++
-
What C++ library do you wish existed but hasn’t been created yet?
I'm not sure this is quite what you're asking for, but this library has been super helpful to me in the past : https://github.com/Neargye/magic_enum
- Usable Magic Enums for C++
-
Fully Permissive License C++ Logger For Embedded System
Also, a shoutout to Magic Enum: https://github.com/Neargye/magic_enum
- Favorite Ways of Stringifying Enums
-
enum_name (yet another enum to/from string conversion utility >=C++11)
What does this have to offer over magic_enum?
-
quill v2.7.0 released - Asynchronous Low Latency C++ Logging Library
But it's a hack, and I prefer not to use hacks in production, because of their significant limitations:
-
Enums print numbers instead of words
You can either write a to string(view) function for your enum or use https://github.com/Neargye/magic_enum
-
Enums with methods
Why reinvent the wheel? magic_enum
-
Error: Boost bimap can't convert const CompatibleKey to Key&
Also if you want to convert enum members to string representation I suggest you just use magic_enum instead, much smaller dependency.
-
Macro to write enum and converter from and to string
Magic Enum provides that.
What are some alternatives?
volbx - Graphical tool for data manipulation written in C++/Qt.
Nameof C++ - Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum
Protobuf - Protocol Buffers - Google's data interchange format
Vince's CSV Parser - A modern C++ library for reading, writing, and analyzing CSV (and similar) files.
cereal - A C++11 library for serialization
Boost.Serialization - Boost.org serialization module
FlatBuffers - FlatBuffers: Memory Efficient Serialization Library
pfr - std::tuple like methods for user defined types without any macro or boilerplate code
wise_enum - A reflective enum implementation for C++
rttr - C++ Reflection Library
protozero - Minimalist protocol buffer decoder and encoder in C++