Namespaces
Last updated
Was this helpful?
Last updated
Was this helpful?
In addition to splitting into , CommsDSL provides namespaces to help in definition of big protocols. It is possible to define , , , and in a separate namespace. The code generator must use this information to define relevant classes in a separate namespace(s) (if such feature is provided by the language) or introduce relevant prefixes into the names to avoid name clashes.
The namespace is defined using <ns> node with single name property. It can contain all the mentioned nodes.
The namespace (<ns>) can also contain other namespaces: