4 #include "tronostools_global.h"
22 class TRONOSTOOLSSHARED_EXPORT ONBPacket
28 format_data m_format_data;
31 explicit ONBPacket(
const ONBHeader &header,
const QByteArray &data = QByteArray(), format_data in_type = T_NONE);
32 explicit ONBPacket(
const QByteArray &data);
33 explicit ONBPacket() { }
36 const ONBHeader &header()
const {
return m_header;}
37 const QByteArray &data()
const {
return m_data;}
39 format_data formatData()
const;
41 void writePacket(QByteArray &data)
const;