entt EnTT-(de)serialization with nlohmann::json Again playing with EnTT (ECS) which has a builtin mechanism that helps you (de)serialize a registry. You have to implement an 'archive' that (de)serializes the data. Here in
zproject zproject(part3): generate bindings After part1(getting started) and part2(looking at generated code) now its time to generate bindings, but before that let's generate a Docker-Image that will create a docker-image with this
zproject zproject(part 2): the generated files In the first part we saw how to create and build a zproject and in this part we will have a look at the code that is actually generated and
zproject zproject(part1): getting started ZProject is a project skeleton generator that helps you create c-APIs and generate multiple build-targets(cmake,autotools,..) with multiple scripting-language-bindings(python,lua,...) . The single source of truth is that project.
cpp use nlohmann::json for serialization Here some samples of how to use nlohmann::json for (de)serialization Define a struct following macro in it: NLOHMANN_DEFINE_TYPE_INTRUSIVE(Struct-name, member1, member2,...)This will add everything
cpp Cross-Compiling with mingw: "mingw mutex is not a member of std" Using spdlog as logger in my current project gives me an error when I try to cross compile it using my urho3d-docker-setup: error: 'mutex' is not a member of 'std' After asking the internet I found out that there are actually different mingw-compilers with
cpp rapidjson: iterate over object and array // get an object auto groups = doc["groups"].GetObject(); // iterate over key-value-pairs ( group.name and group.value ) for (auto const& group : groups){ cout << "group:" << group.name.GetString() << endl; // the value is an array. The
cmake Eclipse CDT Indexer working with CMake & C++11 Finally started working on my nodetree-project. My IDE of choice is still eclipse although it makes one scream from time to time. Since my new project needs c++11 I do want the indexer to make it available for autocompletion. Well, but it does
cpp Emscripten and libRocket libRocket is one of my ui-systems and it actually did work with emscripten outofthebox for one exception. For some reason rcss was not able to parse em-based values into float-values. It took me a some time to realise that emscriptens sscanf-function sees “0.5em”
cpp Compile Java to Native in Linux Just created a new page with instruction how to setup xmlvm to compile Java-Code to Native in Linux! Have a look here: http://thomas.trocha.com/wp/?page_id=684