c++ for SAFplus examples