F´ Flight Software - C/C++ Documentation  NASA-v1.5.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
TimeComponentAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title TimeComponentAc.hpp
3 // \author Auto-generated
4 // \brief hpp file for Time component base class
5 //
6 // \copyright
7 // Copyright 2009-2015, by the California Institute of Technology.
8 // ALL RIGHTS RESERVED. United States Government Sponsorship
9 // acknowledged.
10 //
11 // ======================================================================
12 
13 #ifndef TIME_COMP_HPP_
14 #define TIME_COMP_HPP_
15 
16 #include <FpConfig.hpp>
20 #include <Fw/Time/Time.hpp>
21 #include <Fw/Time/TimePortAc.hpp>
22 
23 namespace Svc {
24 
30  {
31 
32  // ----------------------------------------------------------------------
33  // Friend classes
34  // ----------------------------------------------------------------------
35 
39 
40  public:
41 
42  // ----------------------------------------------------------------------
43  // Getters for typed input ports
44  // ----------------------------------------------------------------------
45 
52  );
53 
55 
56  // ----------------------------------------------------------------------
57  // Component construction, initialization, and destruction
58  // ----------------------------------------------------------------------
59 
60 #if FW_OBJECT_NAMES == 1
64  const char* compName
65  );
66 #else
67  TimeComponentBase(void);
70 #endif
71 
74  void init(
75  NATIVE_INT_TYPE instance = 0
76  );
77 
80  virtual ~TimeComponentBase(void);
81 
83 
84  // ----------------------------------------------------------------------
85  // Handlers to implement for typed input ports
86  // ----------------------------------------------------------------------
87 
89  //
90  virtual void timeGetPort_handler(
93  ) = 0;
94 
96 
97  // ----------------------------------------------------------------------
98  // Port handler base-class functions for typed input ports.
99  // ----------------------------------------------------------------------
100  // Call these functions directly to bypass the corresponding ports.
101  // ----------------------------------------------------------------------
102 
105  void timeGetPort_handlerBase(
107  Fw::Time &time
108  );
109 
111 
112  // ----------------------------------------------------------------------
113  // Getters for numbers of input ports
114  // ----------------------------------------------------------------------
115 
120  NATIVE_INT_TYPE getNum_timeGetPort_InputPorts(void);
121 
122 
123  // ----------------------------------------------------------------------
124  // Enumerations for number of ports
125  // ----------------------------------------------------------------------
126 
127  enum {
129  };
130 
132 
133  // ----------------------------------------------------------------------
134  // Event logging functions
135  // ----------------------------------------------------------------------
136 
137 
138  PRIVATE:
139 
140  // ----------------------------------------------------------------------
141  // Typed input ports
142  // ----------------------------------------------------------------------
143 
146  Fw::InputTimePort m_timeGetPort_InputPort[NUM_TIMEGETPORT_INPUT_PORTS];
147 
149 
150  // ----------------------------------------------------------------------
151  // Calls for messages received on typed input ports
152  // ----------------------------------------------------------------------
153 
156  static void m_p_timeGetPort_in(
157  Fw::PassiveComponentBase* callComp,
160  );
161 
162 
163 
164  };
165 
166 } // end namespace Svc
167 #endif
Fw::InputTimePort
Definition: TimePortAc.hpp:28
Svc::TimeComponentBase
Auto-generated base for Time component.
Definition: TimeComponentAc.hpp:30
PRIVATE
#define PRIVATE
overridable private for unit testing
Definition: BasicTypes.hpp:118
Fw::Time
Definition: Time.hpp:10
Svc::TimeComponentBase::portNum
PRIVATE NATIVE_INT_TYPE portNum
Definition: TimeComponentAc.hpp:158
PROTECTED
#define PROTECTED
overridable protected for unit testing
Definition: BasicTypes.hpp:114
InputSerializePort.hpp
Svc::TimeComponentBase::get_timeGetPort_InputPort
Fw::InputTimePort * get_timeGetPort_InputPort(NATIVE_INT_TYPE portNum)
Definition: TimeComponentAc.cpp:29
Svc::TimeComponentBase::NUM_TIMEGETPORT_INPUT_PORTS
@ NUM_TIMEGETPORT_INPUT_PORTS
Definition: TimeComponentAc.hpp:128
Fw::PassiveComponentBase
Definition: PassiveComponentBase.hpp:10
Fw::ObjBase::init
void init(void)
Object initializer.
Definition: ObjBase.cpp:26
Svc::TimeComponentBase::~TimeComponentBase
virtual ~TimeComponentBase(void)
Definition: TimeComponentAc.cpp:93
ActiveComponentBase.hpp
Svc::TimeComponentBase::TimeComponentBaseFriend
friend class TimeComponentBaseFriend
Definition: TimeComponentAc.hpp:38
Svc::TimeComponentBase::time
PROTECTED Fw::Time & time
Definition: TimeComponentAc.hpp:93
FpConfig.hpp
ISF configuration file.
Svc
Definition: ActiveLoggerComponentAc.cpp:22
Time.hpp
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition: BasicTypes.hpp:29
OutputSerializePort.hpp
TimePortAc.hpp