F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PosixTimeComponentAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title PosixTimeComponentAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for PosixTime component base class
5 // ======================================================================
6 
7 #ifndef Svc_PosixTimeComponentAc_HPP
8 #define Svc_PosixTimeComponentAc_HPP
9 
11 #include "Fw/FPrimeBasicTypes.hpp"
14 #include "Fw/Time/TimePortAc.hpp"
15 
16 namespace Svc {
17 
24  {
25 
26  // ----------------------------------------------------------------------
27  // Friend classes
28  // ----------------------------------------------------------------------
29 
31  friend class PosixTimeTesterBase;
33  friend class PosixTimeTester;
34 
35  protected:
36 
37  // ----------------------------------------------------------------------
38  // Constants
39  // ----------------------------------------------------------------------
40 
42  enum {
44  };
45 
46  public:
47 
48  // ----------------------------------------------------------------------
49  // Component initialization
50  // ----------------------------------------------------------------------
51 
53  void init(
54  FwEnumStoreType instance = 0
55  );
56 
57  public:
58 
59  // ----------------------------------------------------------------------
60  // Getters for typed input ports
61  // ----------------------------------------------------------------------
62 
67  FwIndexType portNum
68  );
69 
70  protected:
71 
72  // ----------------------------------------------------------------------
73  // Component construction and destruction
74  // ----------------------------------------------------------------------
75 
78  const char* compName = ""
79  );
80 
82  virtual ~PosixTimeComponentBase();
83 
84  protected:
85 
86  // ----------------------------------------------------------------------
87  // Getters for numbers of typed input ports
88  // ----------------------------------------------------------------------
89 
94 
95  protected:
96 
97  // ----------------------------------------------------------------------
98  // Handlers to implement for typed input ports
99  // ----------------------------------------------------------------------
100 
102  virtual void timeGetPort_handler(
103  FwIndexType portNum,
104  Fw::Time& time
105  ) = 0;
106 
107  protected:
108 
109  // ----------------------------------------------------------------------
110  // Port handler base-class functions for typed input ports
111  //
112  // Call these functions directly to bypass the corresponding ports
113  // ----------------------------------------------------------------------
114 
117  FwIndexType portNum,
118  Fw::Time& time
119  );
120 
121  private:
122 
123  // ----------------------------------------------------------------------
124  // Calls for messages received on typed input ports
125  // ----------------------------------------------------------------------
126 
128  static void m_p_timeGetPort_in(
129  Fw::PassiveComponentBase* callComp,
130  FwIndexType portNum,
131  Fw::Time& time
132  );
133 
134  private:
135 
136  // ----------------------------------------------------------------------
137  // Typed input ports
138  // ----------------------------------------------------------------------
139 
141  Fw::InputTimePort m_timeGetPort_InputPort[NUM_TIMEGETPORT_INPUT_PORTS];
142 
143  };
144 
145 }
146 
147 #endif
FwIndexType getNum_timeGetPort_InputPorts() const
I32 FwEnumStoreType
Fw::InputTimePort * get_timeGetPort_InputPort(FwIndexType portNum)
Auto-generated base for PosixTime component.
virtual ~PosixTimeComponentBase()
Destroy PosixTimeComponentBase object.
void init()
Object initializer.
Definition: ObjBase.cpp:24
PosixTimeComponentBase(const char *compName="")
Construct PosixTimeComponentBase object.
friend class PosixTimeTesterBase
Friend class tester to support autocoded test harness.
friend class PosixTimeTester
Friend class tester implementation to support white-box testing.
void timeGetPort_handlerBase(FwIndexType portNum, Fw::Time &time)
Handler base-class function for input port timeGetPort.
PlatformIndexType FwIndexType
RateGroupDivider component implementation.
virtual void timeGetPort_handler(FwIndexType portNum, Fw::Time &time)=0
Handler for input port timeGetPort.