Index: scripts/MsgUtils/msgutils/templates/MsgDefs_h.jinja =================================================================== diff -u -r088513e6ea7bad08b4fb7862127c726eabad18fd -r402926738e7394ee2d3dc7add2e6d755f06a289d --- scripts/MsgUtils/msgutils/templates/MsgDefs_h.jinja (.../MsgDefs_h.jinja) (revision 088513e6ea7bad08b4fb7862127c726eabad18fd) +++ scripts/MsgUtils/msgutils/templates/MsgDefs_h.jinja (.../MsgDefs_h.jinja) (revision 402926738e7394ee2d3dc7add2e6d755f06a289d) @@ -10,9 +10,6 @@ #include "CanMessage.h" #include "types.h" -{%- if proto is defined %} -#include "{{ device_name }}MsgDefs.pb.h" -{%- endif %} {%- if cpp_namespace is defined and cpp_namespace is not none %} @@ -73,29 +70,11 @@ {%- endfor %} {%- if msg['cpp_struct']['payload'] | length %} {% endif %} -{%- if proto is defined %} -{%- if cpp_namespace is defined and cpp_namespace is not none %} - void fromProtobuf(const {{ cpp_namespace }}::messages::{{ msg['msg_name'] }} &src); -{%- else %} - void fromProtobuf(const messages::{{ msg['msg_name'] }} &src); -{%- endif %} -{%- endif %} bool fromQByteArray(const QByteArray &src); -{%- if proto is defined %} -{%- if cpp_namespace is defined and cpp_namespace is not none %} - {{ cpp_namespace }}::messages::{{ msg['msg_name'] }} toProtobuf() const; -{%- else %} - messages::{{ msg['msg_name'] }} toProtobuf() const; -{%- endif %} -{%- endif %} void toQByteArray(QByteArray &dst) const; void dump() const; }; {%- endfor %} -{%- if proto is defined %} - -QByteArray canMessageToProtobufByteArray(const QDateTime ×tamp, const QString &deviceSerialNumber, const Can::Message &msg); -{%- endif %} {%- if cpp_namespace is defined and cpp_namespace is not none %} } // namespace {{ cpp_namespace }}