#ifndef FW_COMP_BASE_HPP #define FW_COMP_BASE_HPP #include #include #include namespace Fw { class PassiveComponentBase : public Fw::ObjBase { public: //! Set the ID base void setIdBase(const FwIdType //< The new ID base ); //! Get the ID base //! \return The ID base FwIdType getIdBase() const; protected: PassiveComponentBase(const char* name); //!< Named constructor virtual ~PassiveComponentBase(); //!< Destructor void init(FwEnumStoreType instance); //!< Initialization function FwEnumStoreType getInstance() const; #if FW_OBJECT_TO_STRING == 1 virtual const char* getToStringFormatString(); //!< Return the format for a generic component toString void toString(char* str, FwSizeType size) override; //!< returns string description of component #endif private: FwIdType m_idBase; //!< ID base for opcodes etc. FwEnumStoreType m_instance; //!< instance of component object }; } // namespace Fw #endif