mirror of
https://github.com/nasa/fprime.git
synced 2025-12-11 13:54:34 -06:00
* Format Fw and add to CI * Fix include of HPP file instead of H in extern C * Fix format strings
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
#ifndef FW_COMP_BASE_HPP
|
|
#define FW_COMP_BASE_HPP
|
|
|
|
#include <Fw/FPrimeBasicTypes.hpp>
|
|
#include <Fw/Obj/ObjBase.hpp>
|
|
#include <Fw/Types/Serializable.hpp>
|
|
|
|
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
|