Generated cpp structure and cpp/java 'glue'