Skip to content

Commit

Permalink
Generate original IDL annotations into the DDS implied IDL
Browse files Browse the repository at this point in the history
    * ridlbe/ccmx11/facets/dds/templates/idl/dds/enum.erb:
  • Loading branch information
jwillemsen committed Jan 22, 2024
1 parent df06afb commit 7fb1896
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ridlbe/ccmx11/facets/dds/templates/idl/dds/enum.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
@<%= _a.id %><% unless _a.fields.empty? %>(<% _a.fields.values.each do |f| %><%= f %><% end %>)<% end %>
% end
enum <%= unescaped_name %> {
<%= enumerators.collect {|e| "/// @copydoc #{e.doc_scoped_name}\n #{e.name}" }.join(",\n ") %>
% enumerators.each do |e|
/// @copydoc <%= e.doc_scoped_name %>
% e.annotations.each do |_a|
@<%= _a.id %><% unless _a.fields.empty? %>(<% _a.fields.values.each do |f| %><%= f %><% end %>)<% end %>
% end
<%= e.name %><% unless e.equal?(enumerators.last)%>,<% end %>
% end
};

0 comments on commit 7fb1896

Please sign in to comment.