cpp parser for SAIF file