Skip to content

Commit

Permalink
Completed bitset support for implied DDS IDL
Browse files Browse the repository at this point in the history
    * ridlbe/ccmx11/facets/dds/templates/idl/dds/bitset.erb:
  • Loading branch information
jwillemsen committed Nov 27, 2024
1 parent 3077a6f commit 4d14886
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ridlbe/ccmx11/facets/dds/templates/idl/dds/bitset.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
% annotations.each do |_a|
<%= _a.idl_stringified %>
% end
%# todo bitfield annotations and type
bitset <%= unescaped_name %><% unless base.nil? %> : <%= base.unescaped_name %><% end %> {
<%= bitfields.collect {|e| "/// @copydoc #{e.doc_scoped_name}\n bitfield<#{e.bits}> #{e.name}" }.join(",\n ") %>
% bitfields.each do | e |
/// @copydoc <%= e.doc_scoped_name %>
% e.annotations.each do |_a|
<%= _a.idl_stringified %>
% end
bitfield<<%= e.bits %>, <%= e.idltype.idltype_name %>><% unless e.name.empty? %> <%= e.name %><% end %>;
% end
};

0 comments on commit 4d14886

Please sign in to comment.