|
| 1 | +// ====================================================================== |
| 2 | +// \title NullPrmDb.hpp |
| 3 | +// \author starchmd |
| 4 | +// \brief hpp file for NullPrmDb component implementation class |
| 5 | +// ====================================================================== |
| 6 | + |
| 7 | +#ifndef Components_NullPrmDb_HPP |
| 8 | +#define Components_NullPrmDb_HPP |
| 9 | + |
| 10 | +#include "FprimeZephyrReference/Components/NullPrmDb/NullPrmDbComponentAc.hpp" |
| 11 | + |
| 12 | +namespace Components { |
| 13 | + |
| 14 | +class NullPrmDb final : public NullPrmDbComponentBase { |
| 15 | + public: |
| 16 | + // ---------------------------------------------------------------------- |
| 17 | + // Component construction and destruction |
| 18 | + // ---------------------------------------------------------------------- |
| 19 | + |
| 20 | + //! Construct NullPrmDb object |
| 21 | + NullPrmDb(const char* const compName //!< The component name |
| 22 | + ); |
| 23 | + |
| 24 | + //! Destroy NullPrmDb object |
| 25 | + ~NullPrmDb(); |
| 26 | + |
| 27 | + private: |
| 28 | + // ---------------------------------------------------------------------- |
| 29 | + // Handler implementations for typed input ports |
| 30 | + // ---------------------------------------------------------------------- |
| 31 | + |
| 32 | + //! Handler implementation for getPrm |
| 33 | + //! |
| 34 | + //! Port to get parameter values |
| 35 | + Fw::ParamValid getPrm_handler(FwIndexType portNum, //!< The port number |
| 36 | + FwPrmIdType id, //!< Parameter ID |
| 37 | + Fw::ParamBuffer& val //!< Buffer containing serialized parameter value. |
| 38 | + //!< Unmodified if param not found. |
| 39 | + ) override; |
| 40 | + |
| 41 | + //! Handler implementation for setPrm |
| 42 | + //! |
| 43 | + //! Port to update parameters |
| 44 | + void setPrm_handler(FwIndexType portNum, //!< The port number |
| 45 | + FwPrmIdType id, //!< Parameter ID |
| 46 | + Fw::ParamBuffer& val //!< Buffer containing serialized parameter value |
| 47 | + ) override; |
| 48 | +}; |
| 49 | + |
| 50 | +} // namespace Components |
| 51 | + |
| 52 | +#endif |
0 commit comments