Skip to content

Commit f3c7511

Browse files
committed
Release v3.0
2 parents 79b503f + d2b0165 commit f3c7511

1,484 files changed

Lines changed: 64230 additions & 122260 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 330 additions & 429 deletions
Large diffs are not rendered by default.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Generated by commsdsl2tools_qt v7.0.0
2+
3+
#include "Message.h"
4+
5+
namespace cc_tools_qt_plugin
6+
{
7+
8+
namespace Message
9+
{
10+
11+
namespace cc_ublox
12+
{
13+
14+
Message::Message() = default;
15+
16+
Message::~Message() noexcept = default;
17+
18+
QString Message::idAsStringImpl() const
19+
{
20+
return QString("0x%1").arg(numericIdImpl(), 4, 16, QChar('0')).toUpper();
21+
}
22+
23+
} // namespace cc_ublox
24+
25+
} // namespace Message
26+
27+
} // namespace cc_tools_qt_plugin
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Generated by commsdsl2tools_qt v7.0.0
2+
3+
#pragma once
4+
5+
#include "cc_tools_qt/ToolsMessage.h"
6+
#include "cc_tools_qt/ToolsProtMsgInterface.h"
7+
#include "cc_tools_qt_plugin/cc_ublox/Version.h"
8+
#include "cc_tools_qt_plugin/cc_ublox/options/DefaultOptions.h"
9+
#include "cc_ublox/Message.h"
10+
11+
namespace cc_tools_qt_plugin
12+
{
13+
14+
namespace Message
15+
{
16+
17+
namespace cc_ublox
18+
{
19+
20+
class Message : public cc_tools_qt::ToolsMessage
21+
{
22+
public:
23+
using ProtInterface = cc_tools_qt::ToolsProtMsgInterface<::cc_ublox::Message>;
24+
using ProtOptions = cc_tools_qt_plugin::cc_ublox::options::DefaultOptions;
25+
Message();
26+
virtual ~Message() noexcept;
27+
28+
protected:
29+
virtual QString idAsStringImpl() const override;
30+
};
31+
32+
} // namespace cc_ublox
33+
34+
} // namespace Message
35+
36+
} // namespace cc_tools_qt_plugin

cc_tools_qt_plugin/Message/cc_ublox/factory/MsgFactory.cpp

Lines changed: 664 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Generated by commsdsl2tools_qt v7.0.0
2+
3+
#pragma once
4+
5+
#include "cc_tools_qt/ToolsMsgFactory.h"
6+
7+
namespace cc_tools_qt_plugin
8+
{
9+
10+
namespace Message
11+
{
12+
13+
namespace cc_ublox
14+
{
15+
16+
namespace factory
17+
{
18+
19+
class MsgFactory : public cc_tools_qt::ToolsMsgFactory
20+
{
21+
public:
22+
MsgFactory();
23+
virtual ~MsgFactory();
24+
25+
protected:
26+
virtual MessagesListInternal createAllMessagesImpl() override;
27+
};
28+
29+
} // namespace factory
30+
31+
} // namespace cc_ublox
32+
33+
} // namespace Message
34+
35+
} // namespace cc_tools_qt_plugin
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
// Generated by commsdsl2tools_qt v7.0.0
2+
3+
#include "UbloxFrame.h"
4+
5+
#include "cc_tools_qt/ToolsFrameBase.h"
6+
#include "cc_tools_qt_plugin/Message/cc_ublox/Message.h"
7+
#include "cc_tools_qt_plugin/Message/cc_ublox/factory/MsgFactory.h"
8+
#include "cc_tools_qt_plugin/Message/cc_ublox/frame/UbloxFrameTransportMessage.h"
9+
#include "cc_tools_qt_plugin/cc_ublox/Version.h"
10+
#include "cc_tools_qt_plugin/cc_ublox/options/DefaultOptions.h"
11+
#include "cc_ublox/frame/UbloxFrame.h"
12+
13+
namespace cc_tools_qt_plugin
14+
{
15+
16+
namespace Message
17+
{
18+
19+
namespace cc_ublox
20+
{
21+
22+
namespace frame
23+
{
24+
25+
namespace
26+
{
27+
using ProtUbloxFrame =
28+
::cc_ublox::frame::UbloxFrame<
29+
cc_tools_qt_plugin::Message::cc_ublox::Message::ProtInterface,
30+
::cc_ublox::input::AllMessages<cc_tools_qt_plugin::Message::cc_ublox::Message::ProtInterface, cc_tools_qt_plugin::cc_ublox::options::DefaultOptions>,
31+
cc_tools_qt_plugin::cc_ublox::options::DefaultOptions
32+
>;
33+
}// namespace
34+
35+
class UbloxFrameImpl : public
36+
cc_tools_qt::ToolsFrameBase<
37+
cc_tools_qt_plugin::Message::cc_ublox::Message,
38+
ProtUbloxFrame,
39+
cc_tools_qt_plugin::Message::cc_ublox::factory::MsgFactory,
40+
cc_tools_qt_plugin::Message::cc_ublox::frame::UbloxFrameTransportMessage
41+
>
42+
{
43+
};
44+
45+
UbloxFrame::UbloxFrame() :
46+
m_pImpl(new UbloxFrameImpl){
47+
}
48+
49+
UbloxFrame::~UbloxFrame() = default;
50+
51+
cc_tools_qt::ToolsMessagesList UbloxFrame::readDataImpl(const cc_tools_qt::ToolsDataInfo& dataInfo, bool final)
52+
{
53+
return m_pImpl->readData(dataInfo, final);
54+
}
55+
56+
void UbloxFrame::updateMessageImpl(cc_tools_qt::ToolsMessage& msg)
57+
{
58+
return m_pImpl->updateMessage(msg);
59+
}
60+
61+
cc_tools_qt::ToolsMessagePtr UbloxFrame::createInvalidMessageImpl()
62+
{
63+
return m_pImpl->createInvalidMessage();
64+
}
65+
66+
cc_tools_qt::ToolsMessagePtr UbloxFrame::createRawDataMessageImpl()
67+
{
68+
return m_pImpl->createRawDataMessage();
69+
}
70+
71+
cc_tools_qt::ToolsMessagePtr UbloxFrame::createExtraInfoMessageImpl()
72+
{
73+
return m_pImpl->createExtraInfoMessage();
74+
}
75+
76+
cc_tools_qt::ToolsMessagesList UbloxFrame::createAllMessagesImpl()
77+
{
78+
return m_pImpl->createAllMessages();
79+
}
80+
81+
cc_tools_qt::ToolsMessagePtr UbloxFrame::createMessageImpl(const QString& idAsString, unsigned idx)
82+
{
83+
return m_pImpl->createMessage(idAsString, idx);
84+
}
85+
86+
} // namespace frame
87+
88+
} // namespace cc_ublox
89+
90+
} // namespace Message
91+
92+
} // namespace cc_tools_qt_plugin
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
// Generated by commsdsl2tools_qt v7.0.0
2+
3+
#pragma once
4+
5+
#include <memory>
6+
7+
#include "cc_tools_qt/ToolsFrame.h"
8+
9+
namespace cc_tools_qt_plugin
10+
{
11+
12+
namespace Message
13+
{
14+
15+
namespace cc_ublox
16+
{
17+
18+
namespace frame
19+
{
20+
21+
class UbloxFrameImpl;
22+
class UbloxFrame : public cc_tools_qt::ToolsFrame
23+
{
24+
public:
25+
UbloxFrame();
26+
virtual ~UbloxFrame();
27+
28+
protected:
29+
virtual cc_tools_qt::ToolsMessagesList readDataImpl(const cc_tools_qt::ToolsDataInfo& dataInfo, bool final) override;
30+
virtual void updateMessageImpl(cc_tools_qt::ToolsMessage& msg) override;
31+
virtual cc_tools_qt::ToolsMessagePtr createInvalidMessageImpl() override;
32+
virtual cc_tools_qt::ToolsMessagePtr createRawDataMessageImpl() override;
33+
virtual cc_tools_qt::ToolsMessagePtr createExtraInfoMessageImpl() override;
34+
virtual cc_tools_qt::ToolsMessagesList createAllMessagesImpl() override;
35+
virtual cc_tools_qt::ToolsMessagePtr createMessageImpl(const QString& idAsString, unsigned idx) override;
36+
37+
private:
38+
std::unique_ptr<UbloxFrameImpl> m_pImpl;
39+
};
40+
41+
} // namespace frame
42+
43+
} // namespace cc_ublox
44+
45+
} // namespace Message
46+
47+
} // namespace cc_tools_qt_plugin
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// Generated by commsdsl2tools_qt v7.0.0
2+
3+
#pragma once
4+
5+
#include <tuple>
6+
#include "cc_tools_qt/ToolsTransportProtMessageBase.h"
7+
#include "cc_ublox/frame/UbloxFrame.h"
8+
9+
namespace cc_tools_qt_plugin
10+
{
11+
12+
namespace Message
13+
{
14+
15+
namespace cc_ublox
16+
{
17+
18+
namespace frame
19+
{
20+
21+
template <typename TOpt>
22+
struct UbloxFrameProtTransportMessageFields
23+
{
24+
using All =
25+
std::tuple<
26+
typename ::cc_ublox::frame::UbloxFrameLayers<TOpt>::SyncMembers::Sync,
27+
typename ::cc_ublox::frame::UbloxFrameLayers<TOpt>::IdMembers::MsgId,
28+
typename ::cc_ublox::frame::UbloxFrameLayers<TOpt>::LengthMembers::LENGTH,
29+
typename ::cc_ublox::frame::UbloxFrameLayers<TOpt>::Payload::Field,
30+
typename ::cc_ublox::frame::UbloxFrameLayers<TOpt>::ChecksumMembers::Checksum
31+
>;
32+
};
33+
34+
template <typename TMsgBase, typename TOpt>
35+
class UbloxFrameProtTransportMessage : public
36+
cc_tools_qt::ToolsTransportProtMessageBase<
37+
TMsgBase,
38+
typename UbloxFrameProtTransportMessageFields<TOpt>::All,
39+
UbloxFrameProtTransportMessage<TMsgBase, TOpt>
40+
>
41+
{
42+
using Base =
43+
cc_tools_qt::ToolsTransportProtMessageBase<
44+
TMsgBase,
45+
typename UbloxFrameProtTransportMessageFields<TOpt>::All,
46+
UbloxFrameProtTransportMessage<TMsgBase, TOpt>
47+
>;
48+
public:
49+
COMMS_MSG_FIELDS_NAMES(
50+
sync,
51+
id,
52+
length,
53+
payload,
54+
checksum
55+
);
56+
57+
template <typename TIter>
58+
comms::ErrorStatus doRead(TIter& iter, std::size_t len)
59+
{
60+
len -= 2U;
61+
auto es = Base::template doReadUntilAndUpdateLen<4U>(iter, len);
62+
if (es == comms::ErrorStatus::Success) {
63+
len += 2U;
64+
es = Base::template doReadFrom<4U>(iter, len);
65+
}
66+
67+
return es;
68+
}
69+
};
70+
71+
} // namespace frame
72+
73+
} // namespace cc_ublox
74+
75+
} // namespace Message
76+
77+
} // namespace cc_tools_qt_plugin

0 commit comments

Comments
 (0)