Namespace mapping - loicoudot/java4cpp-core GitHub Wiki

The mappings between java package name and C++ namespace class are fully customizable inside the xml mappings files.

<mappings>
   <namespaces>
      <namespace package="demo.*">cppDemo</namespace>
      <namespace package="demo.Sample">otherNamespace</namespace>
   </namespaces>
</mappings>

You can define a set of package/namespace mappings rules with wildcard and regex. Like for URIs, the rule that match the best package name is used.

For example :

  • demo.Sample becomes otherNamespace::Sample
  • demo.Interface1 becomes cppDemo::Interface1
  • java.demo.Sample becomes java::demo::Sample
⚠️ **GitHub.com Fallback** ⚠️