F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
ComStub.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title ComStub.hpp
3 // \author mstarch
4 // \brief hpp file for ComStub component implementation class
5 // ======================================================================
6 
7 #ifndef Svc_ComStub_HPP
8 #define Svc_ComStub_HPP
9 
11 
12 namespace Svc {
13 
14 class ComStub : public ComStubComponentBase {
15  public:
17  // ----------------------------------------------------------------------
18  // Construction, initialization, and destruction
19  // ----------------------------------------------------------------------
20 
23  ComStub(const char* const compName
24  );
25 
28  void init(const NATIVE_INT_TYPE instance = 0
29  );
30 
33  ~ComStub() override;
34 
35  private:
36  // ----------------------------------------------------------------------
37  // Handler implementations for user-defined typed input ports
38  // ----------------------------------------------------------------------
39 
42  Drv::SendStatus comDataIn_handler(const NATIVE_INT_TYPE portNum,
43  Fw::Buffer& sendBuffer) override;
44 
47  void drvConnected_handler(const NATIVE_INT_TYPE portNum) override;
48 
51  void drvDataIn_handler(const NATIVE_INT_TYPE portNum, Fw::Buffer& recvBuffer,
53  const Drv::RecvStatus& recvStatus) override;
54 
55  bool m_reinitialize;
56 };
57 
58 } // end namespace Svc
59 
60 #endif
PlatformIntType NATIVE_INT_TYPE
Definition: BasicTypes.h:51
PlatformUIntType NATIVE_UINT_TYPE
Definition: BasicTypes.h:52
Status associated with the received data.
Status returned by the send call.
void init()
Object initializer.
Definition: ObjBase.cpp:27
Auto-generated base for ComStub component.
const NATIVE_UINT_TYPE RETRY_LIMIT
Definition: ComStub.hpp:16
~ComStub() override
Definition: ComStub.cpp:23
ComStub(const char *const compName)
Definition: ComStub.cpp:17