Code generator for C++ from YAML to generate network protocol parsers
Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
|
|
class <%= @name %> {
|
|
virtual ~<%= @name %>() = 0;
|
|
<% if !(@attributes.nil?) %>
|
|
<%- @attributes.not_nil!.each do |attr| -%>
|
|
<%- attr.class_name = @name -%>
|
|
<%= attr.to_s %>
|
|
|
|
<%- end -%>
|
|
<% end %>
|
|
|
|
<% if !(@attributeafters.nil?) %>
|
|
<%- @attributeafters.not_nil!.each do |attr| -%>
|
|
<%- attr.class_name = @name -%>
|
|
<%= attr.to_s %>
|
|
|
|
<%- end -%>
|
|
<% end %>
|
|
};
|