F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InputPortBase.hpp
Go to the documentation of this file.
1#ifndef FW_INPUT_PORT_BASE_HPP
2#define FW_INPUT_PORT_BASE_HPP
3
4#include <FpConfig.hpp>
5#include <Fw/Obj/ObjBase.hpp>
9
10namespace Fw {
11
12 class InputPortBase : public PortBase {
13 public:
14 void setPortNum(NATIVE_INT_TYPE portNum); // !< set the port number
15
16#if FW_PORT_SERIALIZATION
17 virtual SerializeStatus invokeSerial(SerializeBufferBase &buffer) = 0; // !< invoke the port with a serialized version of the call
18#endif
19
20 protected:
21
22 InputPortBase(); // Constructor
23 virtual ~InputPortBase(); // Destructor
24 virtual void init();
25
26 PassiveComponentBase* m_comp; // !< pointer to containing component
27 NATIVE_INT_TYPE m_portNum; // !< port number in containing object
28#if FW_OBJECT_TO_STRING == 1
29 virtual void toString(char* str, NATIVE_INT_TYPE size);
30#endif
31
32 private:
33
34 // Disable constructors since we don't want to instantiate directly
37 InputPortBase& operator=(InputPortBase&);
38
39 };
40
41}
42
43#endif
PlatformIntType NATIVE_INT_TYPE
Definition BasicTypes.h:51
C++-compatible configuration header for fprime configuration.
Declarations for Fw::ObjBase and Fw::ObjRegistry.
NATIVE_INT_TYPE m_portNum
virtual void init()
void setPortNum(NATIVE_INT_TYPE portNum)
PassiveComponentBase * m_comp
SerializeStatus
forward declaration for string