generate cpp code from xdd