port NsaReader to c++ string