Skip to content

Modifying the IDL generator to tweak the generated type support code #175

Answered by jmmorato
mellegge asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a way to get the openddsharp.standard.idlgenerator to tweak its generated code?

Yes, the CSharpImplTemplate.txt is copied in the <IDL_NUGET_PATH>/OpenDDS_<arch>/dds/idl folder. We could define interface in the project (i.e. ITypeSupport) and ensure TypeSupport classes inherit it in the code generator.

This would make it possible to use generics when handling lots of TypeSupport classes from more complex IDL files.

Agree, and could be used for other implementations as well, so feel free to pull request your changes to be integrated in the next releases.

More broadly, it would be nice if a config file could be supplied to the generator which would allow further tweaking but I fear …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jmmorato
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants