[Yunq] Add ability to namespace declarations using "package".
This commit is contained in:
parent
9fdd670a23
commit
f1e09b2ae6
15 changed files with 153 additions and 10 deletions
|
|
@ -8,6 +8,10 @@
|
|||
#include "{{file}}.h"
|
||||
#include "{{file}}.client.h"
|
||||
|
||||
{% if package != None %}
|
||||
namespace {{package.cpp_namespace()}} {
|
||||
{% endif %}
|
||||
|
||||
{% for interface in interfaces %}
|
||||
|
||||
class {{interface.name}}ServerBase {
|
||||
|
|
@ -44,3 +48,7 @@ class {{interface.name}}ServerBase {
|
|||
};
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% if package != None %}
|
||||
} // namepace {{package.cpp_namespace()}}
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue