imctrans is a Python 3.x program that translates IMC XML specifications to source code. Right now only C++ is supported but other languages might be supported in the future.
sudo pip3 install imctrans
sudo python3 setup.py install
imctrans translate -l cpp -x PATH_TO_IMC_XML -o OUTPUT_FOLDER