|
| 1 | +// Generated by commsdsl2comms v7.1.0 |
| 2 | + |
| 3 | +/// @file |
| 4 | +/// @brief Contains definition of protocol all messages dynamic memory allocation message factory options. |
| 5 | + |
| 6 | +#pragma once |
| 7 | + |
| 8 | +#include "howto11/options/DefaultOptions.h" |
| 9 | +#include "howto11/prot/factory/AllMessagesDynMemMsgFactory.h" |
| 10 | +#include "howto11/var1/factory/AllMessagesDynMemMsgFactory.h" |
| 11 | +#include "howto11/var2/factory/AllMessagesDynMemMsgFactory.h" |
| 12 | + |
| 13 | +namespace howto11 |
| 14 | +{ |
| 15 | + |
| 16 | +namespace options |
| 17 | +{ |
| 18 | + |
| 19 | +/// @brief Provided all messages dynamic memory allocation message factory options of the protocol. |
| 20 | +/// @details Must be used as the outermost wrapper of the protocol options. |
| 21 | +template <typename TBase = howto11::options::DefaultOptions> |
| 22 | +struct AllMessagesDynMemMsgFactoryDefaultOptionsT : public TBase |
| 23 | +{ |
| 24 | + /// @brief Alias to actual message factory class. |
| 25 | + /// @details Exposes the same template parameters as @b comms::MsgFactory. |
| 26 | + template <typename TInterface, typename TAllMessages, typename... TOptions> |
| 27 | + using prot_MsgFactory = |
| 28 | + howto11::prot::factory::AllMessagesDynMemMsgFactory<TInterface, AllMessagesDynMemMsgFactoryDefaultOptionsT<TBase> >; |
| 29 | + |
| 30 | + /// @brief Alias to actual message factory class. |
| 31 | + /// @details Exposes the same template parameters as @b comms::MsgFactory. |
| 32 | + template <typename TInterface, typename TAllMessages, typename... TOptions> |
| 33 | + using var1_MsgFactory = |
| 34 | + howto11::var1::factory::AllMessagesDynMemMsgFactory<TInterface, AllMessagesDynMemMsgFactoryDefaultOptionsT<TBase> >; |
| 35 | + |
| 36 | + /// @brief Alias to actual message factory class. |
| 37 | + /// @details Exposes the same template parameters as @b comms::MsgFactory. |
| 38 | + template <typename TInterface, typename TAllMessages, typename... TOptions> |
| 39 | + using var2_MsgFactory = |
| 40 | + howto11::var2::factory::AllMessagesDynMemMsgFactory<TInterface, AllMessagesDynMemMsgFactoryDefaultOptionsT<TBase> >; |
| 41 | + |
| 42 | + /// @brief Extra options for namespace. |
| 43 | + struct prot: public TBase::prot |
| 44 | + { |
| 45 | + /// @brief Extra options for frames. |
| 46 | + struct frame : public TBase::prot::frame |
| 47 | + { |
| 48 | + /// @brief Extra options for layers of |
| 49 | + /// @ref howto11::prot::frame::Frame frame. |
| 50 | + struct FrameLayers : public TBase::prot::frame::FrameLayers |
| 51 | + { |
| 52 | + /// @brief Extra options for @ref |
| 53 | + /// howto11::prot::frame::FrameLayers::ID |
| 54 | + /// layer. |
| 55 | + using ID = |
| 56 | + std::tuple< |
| 57 | + comms::option::app::MsgFactoryTempl<prot_MsgFactory>, |
| 58 | + typename TBase::prot::frame::FrameLayers::ID |
| 59 | + >; |
| 60 | + }; // struct FrameLayers |
| 61 | + }; // struct frame |
| 62 | + }; // struct prot |
| 63 | + |
| 64 | + /// @brief Extra options for namespace. |
| 65 | + struct var1: public TBase::var1 |
| 66 | + { |
| 67 | + /// @brief Extra options for frames. |
| 68 | + struct frame : public TBase::var1::frame |
| 69 | + { |
| 70 | + /// @brief Extra options for layers of |
| 71 | + /// @ref howto11::var1::frame::KeyValueProp frame. |
| 72 | + struct KeyValuePropLayers : public TBase::var1::frame::KeyValuePropLayers |
| 73 | + { |
| 74 | + /// @brief Extra options for @ref |
| 75 | + /// howto11::var1::frame::KeyValuePropLayers::Key |
| 76 | + /// layer. |
| 77 | + using Key = |
| 78 | + std::tuple< |
| 79 | + comms::option::app::MsgFactoryTempl<var1_MsgFactory>, |
| 80 | + typename TBase::var1::frame::KeyValuePropLayers::Key |
| 81 | + >; |
| 82 | + }; // struct KeyValuePropLayers |
| 83 | + }; // struct frame |
| 84 | + }; // struct var1 |
| 85 | + |
| 86 | + /// @brief Extra options for namespace. |
| 87 | + struct var2: public TBase::var2 |
| 88 | + { |
| 89 | + /// @brief Extra options for frames. |
| 90 | + struct frame : public TBase::var2::frame |
| 91 | + { |
| 92 | + /// @brief Extra options for layers of |
| 93 | + /// @ref howto11::var2::frame::TlvProp frame. |
| 94 | + struct TlvPropLayers : public TBase::var2::frame::TlvPropLayers |
| 95 | + { |
| 96 | + /// @brief Extra options for @ref |
| 97 | + /// howto11::var2::frame::TlvPropLayers::Key |
| 98 | + /// layer. |
| 99 | + using Key = |
| 100 | + std::tuple< |
| 101 | + comms::option::app::MsgFactoryTempl<var2_MsgFactory>, |
| 102 | + typename TBase::var2::frame::TlvPropLayers::Key |
| 103 | + >; |
| 104 | + }; // struct TlvPropLayers |
| 105 | + }; // struct frame |
| 106 | + }; // struct var2 |
| 107 | +}; |
| 108 | + |
| 109 | +/// @brief Alias to @ref AllMessagesDynMemMsgFactoryDefaultOptionsT with default template parameter. |
| 110 | +using AllMessagesDynMemMsgFactoryDefaultOptions = AllMessagesDynMemMsgFactoryDefaultOptionsT<>; |
| 111 | + |
| 112 | +} // namespace options |
| 113 | + |
| 114 | +} // namespace howto11 |
0 commit comments