Code generator for C++ from YAML to generate network protocol parsers
Вы не можете выбрать более 25 тем
Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
|
|
|
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 %>
|
|
};
|