[scanner] add cplusplus wrapper