-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Fix issues in generated headers
- Loading branch information
Santhosh Ramani
committed
Sep 6, 2023
1 parent
8b37a49
commit fd66f37
Showing
21 changed files
with
54 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
${method.name} | ||
${method.description} | ||
${method.params.annotations}${if.deprecated} * @deprecated ${method.deprecation}${end.if.deprecated} | ||
*/ | ||
virtual int32_t ${method.Name}( ${method.signature.params}${if.result}${if.params}, ${end.if.params}${method.result.type}& ${method.result.name}${end.if.result} ) = 0; | ||
/* | ||
${method.name} | ||
${method.description} | ||
${method.params.annotations}${if.deprecated} * @deprecated ${method.deprecation}${end.if.deprecated} | ||
*/ | ||
virtual int32_t ${method.Name}( ${method.signature.params}${if.result}${if.params}, ${end.if.params}${method.result.type}& ${method.result.name}${end.if.result} ) = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
/* ${method.name} - ${method.description} */ | ||
struct I${method.Name}Notification { | ||
virtual void ${method.Name} ( ${event.signature.callback.params}${if.event.params}, ${end.if.event.params}${method.result.properties} ) = 0; | ||
}; | ||
|
||
virtual int32_t subscribe ( ${event.signature.params}${if.event.params}, ${end.if.event.params}I${method.Name}Notification& notification ) = 0; | ||
virtual int32_t unsubscribe ( I${method.Name}Notification& notification ) = 0; | ||
|
||
// signature callback params: ${event.signature.callback.params} | ||
// method result properties : ${method.result.properties} | ||
/* ${method.name} - ${method.description} */ | ||
struct I${method.Name}Notification { | ||
virtual void ${method.Name} ( ${event.signature.callback.params}${if.event.params}, ${end.if.event.params}${method.result.properties} ) = 0; | ||
}; | ||
// signature callback params: ${event.signature.callback.params} | ||
// method result properties : ${method.result.properties} | ||
virtual int32_t subscribe ( ${event.signature.params}${if.event.params}, ${end.if.event.params}I${method.Name}Notification& notification ) = 0; | ||
virtual int32_t unsubscribe ( I${method.Name}Notification& notification ) = 0; |
14 changes: 7 additions & 7 deletions
14
languages/cpp/templates/declarations/polymorphic-pull-event.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/* ${method.name} - ${method.description} */ | ||
struct I{method.Name}Notification { | ||
virtual void ${method.Name} ( ${method.pulls.param.type}& value ) = 0; | ||
}; | ||
virtual int32_t subscribe ( I{method.Name}Notification& notification ) = 0; | ||
virtual int32_t unsubscribe ( I{method.Name}Notification& notification ) = 0; | ||
/* ${method.name} - ${method.description} */ | ||
struct I{method.Name}Notification { | ||
virtual void ${method.Name} ( ${method.pulls.param.type}& value ) = 0; | ||
}; | ||
|
||
virtual int32_t subscribe ( I{method.Name}Notification& notification ) = 0; | ||
virtual int32_t unsubscribe ( I{method.Name}Notification& notification ) = 0; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
/* ${method.name} - ${method.description} */ | ||
virtual int32_t ${method.Name}( ${method.signature.params} ) = 0; | ||
/* ${method.name} - ${method.description} */ | ||
virtual int32_t ${method.Name}( ${method.signature.params} ) = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* ${method.summary} | ||
* ${method.params} | ||
*/ | ||
virtual int32_t ${method.Name}(${method.signature.params}${if.result.properties}${if.params}, ${end.if.params}${end.if.result.properties}${method.result.properties}) = 0; | ||
/* | ||
* ${method.summary} | ||
* ${method.params} | ||
*/ | ||
virtual int32_t ${method.Name}(${method.signature.params}${if.result.properties}${if.params}, ${end.if.params}${end.if.result.properties}${method.result.properties}) = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* ${method.description} | ||
* ${method.params} | ||
*/ | ||
virtual int32_t ${method.Name} (${method.signature.params}${if.params}, ${end.if.params}${method.result.properties}) = 0; | ||
/* | ||
* ${method.description} | ||
* ${method.params} | ||
*/ | ||
virtual int32_t ${method.Name} (${method.signature.params}${if.params}, ${end.if.params}${method.result.properties}) = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
${method.rpc.name} | ||
${method.description} | ||
*/ | ||
virtual int32_t ${method.Name}( ${method.signature.params} ) = 0; | ||
/* | ||
${method.rpc.name} | ||
${method.description} | ||
*/ | ||
virtual int32_t ${method.Name}( ${method.signature.params} ) = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
std::unordered_map<std::string,${type}> title; | ||
${title} value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
std::vector<${type}> ${title}; | ||
std::vector<${type}> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
nullptr | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
${if.optional}std::optional<${end.if.optional}${title}${if.optional}>${end.if.optional} ${property}; // ${summary} | ||
${if.optional}std::optional<${end.if.optional}${title}${if.optional}>${end.if.optional} ${property}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
/* ${title} */ | ||
struct ${title} { | ||
|
||
${properties} | ||
|
||
}; | ||
std::pair<${type},${type}> ${title}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters