Reflection in C++ [duplicate] - c++

This question already has answers here:
Why does C++ not have reflection?
(15 answers)
Closed 9 years ago.
I am currently porting a game from Cocos2d written in ObjectiveC to Cocos2d-x in C++. Now the objective C guys have used Reflection to populate modal classes from a json object. Is the same possible in C++ Can we use reflection in C++ ?
Kind Regards

As mentioned in the comments, C++ has no reflection.
The default solution is to register all the symbols that you need in an associative array, like unordered_map. Here are examples of that.

Related

Calling a .net function from C++ [duplicate]

This question already has answers here:
How do I call a .NET assembly from C/C++?
(9 answers)
Closed 8 years ago.
I want to use this function to zip up a folder from a C++ console application. No examples are given in the article of how to use the function from C++, just C# or VB, and I can't find any other code samples anywhere.
The article doesn't really even clarify whether the function is available in C++. Is this function supported in C++? And if so, how do I call it?
Thanks.
This doesn't answer your specific question of calling that .NET method you requested, but, if you want to compress some files using native C++, look at using Zlib and there is a contribution app called minizip which you can use for opening / creating zip archives.

What is an equivalent to instanceof in C++? [duplicate]

This question already has answers here:
C++ equivalent of java's instanceof
(5 answers)
Closed 9 years ago.
How can I check the class type in c++?
In Java I used instanceof.
I prefer not to use dynamic cast, but only classic c++.
Is there any way?
Clarification:
It isn't a duplicate of another question in StackOverflow, since I asked how can I find it without using of dynamic_cast. In the other question, the answer was to use it. Please don't mark it as a duplicated.
There is no way to check class type without RTTI or it's home brew substitution. If application compiled without RTTI information about type is not stored anywhere.

C++ wrapper for SQLite3 API - alternatives for sqlite3pp [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
What is a good OO C++ wrapper for sqlite
I'm looking for C++ wrappers for SQLite3 API. So far, I only found sqlite3pp. It seems quite up-to-date, however, before settling with that I wanted to see if there are any alternatives. Do you guys know any? Thanks in advance!
I don't know why I can't find the Wiki linked from the SQLite homepage anymore. But it lists lots of C++ wrappers: http://www.sqlite.org/cvstrac/wiki?p=SqliteWrappers

Arbitrary precision in c++ using Windows? [duplicate]

This question already has answers here:
Bignum libraries for windows?
(4 answers)
Closed 9 years ago.
Is there a library that can be implemented relatively easily in windows?
I made a few functions a while ago which used arrays of numbers to get the desired outcome. I might work at them when I get the time.
But is there any such feature already available that can be implemented into c++ easily?
Apparently people have had luck with using the GNU Multiple Precision Arithmetic Library for Windows.

Good coding guidelines tool for C++? [duplicate]

This question already has answers here:
Closed 13 years ago.
Possible Duplicate:
What tools exist for comparing C++ code to coding guidelines?
Can any one suggest any good coding guidelines tool for C++ which must be configurable according to specific requirements?
I've always found the Google C++ Style Guide to be a good one.