F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
InputPortBase.hpp
Go to the documentation of this file.
1 #ifndef FW_INPUT_PORT_BASE_HPP
2 #define FW_INPUT_PORT_BASE_HPP
3 
6 #include <Fw/Obj/ObjBase.hpp>
7 #include <Fw/Port/PortBase.hpp>
9 
10 namespace Fw {
11 
12 class InputPortBase : public PortBase {
13  public:
14  void setPortNum(FwIndexType portNum); // !< set the port number
15 
16 #if FW_PORT_SERIALIZATION
17  virtual SerializeStatus invokeSerial(
18  SerializeBufferBase& buffer) = 0; // !< invoke the port with a serialized version of the call
19 #endif
20 
21  protected:
22  InputPortBase(); // Constructor
23  virtual ~InputPortBase(); // Destructor
24  void init() override;
25 
26  PassiveComponentBase* m_comp; // !< pointer to containing component
27  FwIndexType m_portNum; // !< port number in containing object
28 #if FW_OBJECT_TO_STRING == 1
29  const char* getToStringFormatString() override;
30 #endif
31 
32  private:
33  // Disable constructors since we don't want to instantiate directly
36  InputPortBase& operator=(InputPortBase&);
37 };
38 
39 } // namespace Fw
40 
41 #endif
virtual ~InputPortBase()
FwIndexType m_portNum
SerializeStatus
forward declaration for string
void setPortNum(FwIndexType portNum)
Declarations for Fw::ObjBase and Fw::ObjRegistry.
PassiveComponentBase * m_comp
PlatformIndexType FwIndexType
void init() override