F´ Flight Software - C/C++ Documentation
devel
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
(
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
35
InputPortBase
(
InputPortBase
*);
36
InputPortBase
(
InputPortBase
&);
37
InputPortBase
& operator=(
InputPortBase
&);
38
39
};
40
41
}
42
43
#endif
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition:
BasicTypes.h:55
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
ObjBase.hpp
Declarations for Fw::ObjBase and Fw::ObjRegistry.
PassiveComponentBase.hpp
PortBase.hpp
Serializable.hpp
Fw::InputPortBase
Definition:
InputPortBase.hpp:12
Fw::InputPortBase::~InputPortBase
virtual ~InputPortBase()
Definition:
InputPortBase.cpp:14
Fw::InputPortBase::m_portNum
NATIVE_INT_TYPE m_portNum
Definition:
InputPortBase.hpp:27
Fw::InputPortBase::init
virtual void init()
Definition:
InputPortBase.cpp:18
Fw::InputPortBase::setPortNum
void setPortNum(NATIVE_INT_TYPE portNum)
Definition:
InputPortBase.cpp:23
Fw::InputPortBase::m_comp
PassiveComponentBase * m_comp
Definition:
InputPortBase.hpp:26
Fw::InputPortBase::InputPortBase
InputPortBase()
Definition:
InputPortBase.cpp:8
Fw::PassiveComponentBase
Definition:
PassiveComponentBase.hpp:10
Fw::PortBase
Definition:
PortBase.hpp:16
Fw::SerializeBufferBase
Definition:
Serializable.hpp:54
Fw
Definition:
FppConstantsAc.hpp:121
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
Fw
Port
InputPortBase.hpp
Generated by
1.9.1