edited cpp source for new format

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>