Use xml define and parse binary data struct. Use C++ CMakeup library.