api_generator:cpp: support namespaces