If you want to write your own postprocessor, have a look at the CAM Postprocessor Customization page.