-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
180 changed files
with
6,239 additions
and
8,063 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Generated by commsdsl2tools_qt v7.0.0 | ||
|
||
#include "Message.h" | ||
|
||
namespace cc_tools_qt_plugin | ||
{ | ||
|
||
namespace Message | ||
{ | ||
|
||
namespace cc_mqttsn | ||
{ | ||
|
||
Message::Message() = default; | ||
|
||
Message::~Message() noexcept = default; | ||
|
||
QString Message::idAsStringImpl() const | ||
{ | ||
return QString("0x%1").arg(numericIdImpl(), 2, 16, QChar('0')).toUpper(); | ||
} | ||
|
||
} // namespace cc_mqttsn | ||
|
||
} // namespace Message | ||
|
||
} // namespace cc_tools_qt_plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Generated by commsdsl2tools_qt v7.0.0 | ||
|
||
#pragma once | ||
|
||
#include "cc_mqttsn/Message.h" | ||
#include "cc_tools_qt/ToolsMessage.h" | ||
#include "cc_tools_qt/ToolsProtMsgInterface.h" | ||
#include "cc_tools_qt_plugin/cc_mqttsn/Version.h" | ||
#include "cc_tools_qt_plugin/cc_mqttsn/options/DefaultOptions.h" | ||
|
||
namespace cc_tools_qt_plugin | ||
{ | ||
|
||
namespace Message | ||
{ | ||
|
||
namespace cc_mqttsn | ||
{ | ||
|
||
class Message : public cc_tools_qt::ToolsMessage | ||
{ | ||
public: | ||
using ProtInterface = cc_tools_qt::ToolsProtMsgInterface<::cc_mqttsn::Message>; | ||
using ProtOptions = cc_tools_qt_plugin::cc_mqttsn::options::DefaultOptions; | ||
Message(); | ||
virtual ~Message() noexcept; | ||
|
||
protected: | ||
virtual QString idAsStringImpl() const override; | ||
}; | ||
|
||
} // namespace cc_mqttsn | ||
|
||
} // namespace Message | ||
|
||
} // namespace cc_tools_qt_plugin |
90 changes: 90 additions & 0 deletions
90
cc_tools_qt_plugin/Message/cc_mqttsn/factory/MsgFactory.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
// Generated by commsdsl2tools_qt v7.0.0 | ||
|
||
#include "MsgFactory.h" | ||
|
||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Advertise.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Connack.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Connect.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Disconnect.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Fwd.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Gwinfo.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Pingreq.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Pingresp.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Puback.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Pubcomp.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Publish.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Pubrec.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Pubrel.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Regack.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Register.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Searchgw.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Suback.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Subscribe.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Unsuback.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Unsubscribe.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Willmsg.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Willmsgreq.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Willmsgresp.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Willmsgupd.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Willtopic.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Willtopicreq.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Willtopicresp.h" | ||
#include "cc_tools_qt_plugin/Message/cc_mqttsn/message/Willtopicupd.h" | ||
|
||
namespace cc_tools_qt_plugin | ||
{ | ||
|
||
namespace Message | ||
{ | ||
|
||
namespace cc_mqttsn | ||
{ | ||
|
||
namespace factory | ||
{ | ||
|
||
MsgFactory::MsgFactory() = default; | ||
MsgFactory::~MsgFactory() = default; | ||
|
||
MsgFactory::MessagesListInternal MsgFactory::createAllMessagesImpl() | ||
{ | ||
return | ||
MessagesListInternal{ | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Advertise), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Searchgw), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Gwinfo), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Connect), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Connack), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Willtopicreq), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Willtopic), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Willmsgreq), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Willmsg), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Register), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Regack), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Publish), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Puback), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Pubcomp), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Pubrec), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Pubrel), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Subscribe), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Suback), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Unsubscribe), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Unsuback), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Pingreq), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Pingresp), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Disconnect), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Willtopicupd), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Willtopicresp), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Willmsgupd), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Willmsgresp), | ||
cc_tools_qt::ToolsMessagePtr(new cc_tools_qt_plugin::Message::cc_mqttsn::message::Fwd) | ||
}; | ||
} | ||
|
||
} // namespace factory | ||
|
||
} // namespace cc_mqttsn | ||
|
||
} // namespace Message | ||
|
||
} // namespace cc_tools_qt_plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Generated by commsdsl2tools_qt v7.0.0 | ||
|
||
#pragma once | ||
|
||
#include "cc_tools_qt/ToolsMsgFactory.h" | ||
|
||
namespace cc_tools_qt_plugin | ||
{ | ||
|
||
namespace Message | ||
{ | ||
|
||
namespace cc_mqttsn | ||
{ | ||
|
||
namespace factory | ||
{ | ||
|
||
class MsgFactory : public cc_tools_qt::ToolsMsgFactory | ||
{ | ||
public: | ||
MsgFactory(); | ||
virtual ~MsgFactory(); | ||
|
||
protected: | ||
virtual MessagesListInternal createAllMessagesImpl() override; | ||
}; | ||
|
||
} // namespace factory | ||
|
||
} // namespace cc_mqttsn | ||
|
||
} // namespace Message | ||
|
||
} // namespace cc_tools_qt_plugin |
Oops, something went wrong.