Made generated API C++ a bit more readeable.
This commit is contained in:
1 parent
4afe973eb2
commit
199a7a2da3
2 files changed
+5
-1
No files matched your search
@@ -15,6 +15,8 @@
|
||||
namespace bts {
|
||||
namespace api {
|
||||
|
||||
template<class R> using Response = std::function<void(R const&)>;
|
||||
|
||||
class ServiceContext;
|
||||
class BTS_EXPORT ApiServer
|
||||
{
|
||||
|
||||
@@ -36,7 +36,9 @@ protected:
|
||||
{{cap name}}Publisher make_{{name}}_publisher(const {{input_type}}& qualifier) const;
|
||||
{{else}}
|
||||
// {{comment}}
|
||||
virtual void {{name}}(const {{input_type}}& request, const std::function<void(const {{output_type_cpp}}&)>& reply) = 0;
|
||||
virtual void {{name}}(
|
||||
const {{input_type}}& request,
|
||||
const api::Response<{{output_type_cpp}}>& reply) = 0;
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
||||
|
||||
Reference in new issue
Block a user