A general-purpose tool for parameter handling in C++