| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // ====================================================================== | ||
| 2 | // \title TypeDemo.hpp | ||
| 3 | // \author mstarch | ||
| 4 | // \brief hpp file for TypeDemo component implementation class | ||
| 5 | // ====================================================================== | ||
| 6 | |||
| 7 | #ifndef TypeDemo_HPP | ||
| 8 | #define TypeDemo_HPP | ||
| 9 | |||
| 10 | #include "Ref/TypeDemo/TypeDemoComponentAc.hpp" | ||
| 11 | |||
| 12 | namespace Ref { | ||
| 13 | |||
| 14 | class TypeDemo : public TypeDemoComponentBase { | ||
| 15 | public: | ||
| 16 | // ---------------------------------------------------------------------- | ||
| 17 | // Construction, initialization, and destruction | ||
| 18 | // ---------------------------------------------------------------------- | ||
| 19 | |||
| 20 | //! Construct object TypeDemo | ||
| 21 | //! | ||
| 22 | TypeDemo(const char* const compName //!< The component name | ||
| 23 | ); | ||
| 24 | |||
| 25 | //! Destroy object TypeDemo | ||
| 26 | //! | ||
| 27 | 2 | ~TypeDemo() = default; | |
| 28 | |||
| 29 | private: | ||
| 30 | // ---------------------------------------------------------------------- | ||
| 31 | // Command handler implementations | ||
| 32 | // ---------------------------------------------------------------------- | ||
| 33 | |||
| 34 | //! Implementation for CHOICE command handler | ||
| 35 | //! Single choice command | ||
| 36 | void CHOICE_cmdHandler(const FwOpcodeType opCode, //!< The opcode | ||
| 37 | const U32 cmdSeq, //!< The command sequence number | ||
| 38 | const Ref::Choice& choice); | ||
| 39 | |||
| 40 | //! Implementation for CHOICES command handler | ||
| 41 | //! Multiple choice command via Array | ||
| 42 | void CHOICES_cmdHandler(const FwOpcodeType opCode, //!< The opcode | ||
| 43 | const U32 cmdSeq, //!< The command sequence number | ||
| 44 | const Ref::ManyChoices& choices); | ||
| 45 | |||
| 46 | //! Implementation for CHOICES_WITH_FRIENDS command handler | ||
| 47 | //! Multiple choice command via Array with a preceding and following argument | ||
| 48 | void CHOICES_WITH_FRIENDS_cmdHandler(const FwOpcodeType opCode, //!< The opcode | ||
| 49 | const U32 cmdSeq, //!< The command sequence number | ||
| 50 | U8 repeat, | ||
| 51 | const Ref::ManyChoices& choices, | ||
| 52 | U8 repeat_max); | ||
| 53 | |||
| 54 | //! Implementation for EXTRA_CHOICES command handler | ||
| 55 | //! Multiple choice command via Array | ||
| 56 | void EXTRA_CHOICES_cmdHandler(const FwOpcodeType opCode, //!< The opcode | ||
| 57 | const U32 cmdSeq, //!< The command sequence number | ||
| 58 | const Ref::TooManyChoices& choices); | ||
| 59 | |||
| 60 | //! Implementation for EXTRA_CHOICES_WITH_FRIENDS command handler | ||
| 61 | //! Too many choices command via Array with a preceding and following argument | ||
| 62 | void EXTRA_CHOICES_WITH_FRIENDS_cmdHandler(const FwOpcodeType opCode, //!< The opcode | ||
| 63 | const U32 cmdSeq, //!< The command sequence number | ||
| 64 | U8 repeat, | ||
| 65 | const Ref::TooManyChoices& choices, | ||
| 66 | U8 repeat_max); | ||
| 67 | //! Implementation for CHOICE_PAIR command handler | ||
| 68 | //! Multiple choice command via Structure | ||
| 69 | void CHOICE_PAIR_cmdHandler(const FwOpcodeType opCode, //!< The opcode | ||
| 70 | const U32 cmdSeq, //!< The command sequence number | ||
| 71 | const Ref::ChoicePair& choices); | ||
| 72 | |||
| 73 | //! Implementation for CHOICE_PAIR_WITH_FRIENDS command handler | ||
| 74 | //! Multiple choices command via Structure with a preceding and following argument | ||
| 75 | void CHOICE_PAIR_WITH_FRIENDS_cmdHandler(const FwOpcodeType opCode, //!< The opcode | ||
| 76 | const U32 cmdSeq, //!< The command sequence number | ||
| 77 | U8 repeat, | ||
| 78 | const Ref::ChoicePair& choices, | ||
| 79 | U8 repeat_max); | ||
| 80 | //! Implementation for GLUTTON_OF_CHOICE command handler | ||
| 81 | //! Multiple choice command via Complex Structure | ||
| 82 | void GLUTTON_OF_CHOICE_cmdHandler(const FwOpcodeType opCode, //!< The opcode | ||
| 83 | const U32 cmdSeq, //!< The command sequence number | ||
| 84 | const Ref::ChoiceSlurry& choices //!< A phenomenal amount of choice | ||
| 85 | ); | ||
| 86 | |||
| 87 | //! Implementation for GLUTTON_OF_CHOICE_WITH_FRIENDS command handler | ||
| 88 | //! Multiple choices command via Complex Structure with a preceding and following argument | ||
| 89 | void GLUTTON_OF_CHOICE_WITH_FRIENDS_cmdHandler(const FwOpcodeType opCode, //!< The opcode | ||
| 90 | const U32 cmdSeq, //!< The command sequence number | ||
| 91 | U8 repeat, //!< Number of times to repeat the choices | ||
| 92 | const Ref::ChoiceSlurry& choices, //!< A phenomenal amount of choice | ||
| 93 | U8 repeat_max //!< Limit to the number of repetitions | ||
| 94 | ); | ||
| 95 | |||
| 96 | //! Implementation for DUMP_TYPED_PARAMETERS command handler | ||
| 97 | //! Dump the typed parameters | ||
| 98 | void DUMP_TYPED_PARAMETERS_cmdHandler(const FwOpcodeType opCode, //!< The opcode | ||
| 99 | const U32 cmdSeq //!< The command sequence number | ||
| 100 | ); | ||
| 101 | |||
| 102 | //! Implementation for DUMP_FLOATS command handler | ||
| 103 | //! | ||
| 104 | void DUMP_FLOATS_cmdHandler(const FwOpcodeType opCode, /*!< The opcode*/ | ||
| 105 | const U32 cmdSeq /*!< The command sequence number*/ | ||
| 106 | ); | ||
| 107 | |||
| 108 | //! Implementation for SEND_SCALARS command handler | ||
| 109 | //! Send scalars | ||
| 110 | void SEND_SCALARS_cmdHandler(const FwOpcodeType opCode, /*!< The opcode*/ | ||
| 111 | const U32 cmdSeq, /*!< The command sequence number*/ | ||
| 112 | const Ref::ScalarStruct& scalar_input); | ||
| 113 | }; | ||
| 114 | |||
| 115 | } // end namespace Ref | ||
| 116 | |||
| 117 | #endif | ||
| 118 |