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
4
#include <
FpConfig.hpp
>
5
#include <
Fw/Obj/ObjBase.hpp
>
6
#include <
Fw/Types/Serializable.hpp
>
7
#include <
Fw/Comp/PassiveComponentBase.hpp
>
8
#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(
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
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
34
// Disable constructors since we don't want to instantiate directly
35
InputPortBase
(
InputPortBase
*);
36
InputPortBase
(
InputPortBase
&);
37
InputPortBase
& operator=(
InputPortBase
&);
38
39
};
40
41
}
42
43
#endif
Fw::PassiveComponentBase
Definition:
PassiveComponentBase.hpp:10
Fw::InputPortBase::~InputPortBase
virtual ~InputPortBase()
Definition:
InputPortBase.cpp:14
Fw::InputPortBase::m_portNum
FwIndexType m_portNum
Definition:
InputPortBase.hpp:27
PassiveComponentBase.hpp
FwIndexType
PlatformIndexType FwIndexType
Definition:
FpConfig.h:25
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
Fw::InputPortBase::InputPortBase
InputPortBase()
Definition:
InputPortBase.cpp:8
Fw::SerializeBufferBase
Definition:
Serializable.hpp:54
Fw::InputPortBase::setPortNum
void setPortNum(FwIndexType portNum)
Definition:
InputPortBase.cpp:23
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
PortBase.hpp
ObjBase.hpp
Declarations for Fw::ObjBase and Fw::ObjRegistry.
Fw::InputPortBase::m_comp
PassiveComponentBase * m_comp
Definition:
InputPortBase.hpp:26
Fw::InputPortBase::init
void init() override
Definition:
InputPortBase.cpp:18
Fw::PortBase
Definition:
PortBase.hpp:16
Fw
Definition:
FppConstantsAc.hpp:121
Fw::InputPortBase
Definition:
InputPortBase.hpp:12
Serializable.hpp
Fw
Port
InputPortBase.hpp
Generated by
1.8.14