There is a software complex - written in Visual C ++: a solution consisting of several projects that are not closely related to each other, but each one has its own state.
I would like to store the state of individual modules in configs. In advance, I do not know how much and what will be stored - just a set of different types of elements string, int, float ... At this stage, I intend to use ini files. (using the https://github.com/benhoyt/inih library)
I have to first specify the types of variables, then the variables themselves, somehow store all this. But at the same time, access to variables should be fast. (So you need to use macros or inline templates ...) The problem seems to me quite voluminous and definitely there are competent implementations.
What is ready ready handling of user variables?