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
ComSplitterComponentAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title ComSplitterComponentAc.hpp
3 // \author Auto-generated
4 // \brief hpp file for ComSplitter 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 COMSPLITTER_COMP_HPP_
14 #define COMSPLITTER_COMP_HPP_
15 
16 #include <FpConfig.hpp>
20 #include <Fw/Com/ComBuffer.hpp>
21 #include <Fw/Com/ComPortAc.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 
54  public:
55 
56  // ----------------------------------------------------------------------
57  // Connect typed input ports to typed output ports
58  // ----------------------------------------------------------------------
59 
64  Fw::InputComPort *port
65  );
66 
67 #if FW_PORT_SERIALIZATION
68 
69  public:
70 
71  // ----------------------------------------------------------------------
72  // Connect serialization input ports to typed output ports
73  // ----------------------------------------------------------------------
74 
79  Fw::InputSerializePort *port
80  );
81 
82 #endif
83 
85 
86  // ----------------------------------------------------------------------
87  // Component construction, initialization, and destruction
88  // ----------------------------------------------------------------------
89 
90 #if FW_OBJECT_NAMES == 1
94  const char* compName
95  );
96 #else
100 #endif
101 
104  void init(
105  NATIVE_INT_TYPE instance = 0
106  );
107 
110  virtual ~ComSplitterComponentBase(void);
111 
113 
114  // ----------------------------------------------------------------------
115  // Handlers to implement for typed input ports
116  // ----------------------------------------------------------------------
117 
119  //
120  virtual void comIn_handler(
123  U32 context
124  ) = 0;
125 
127 
128  // ----------------------------------------------------------------------
129  // Port handler base-class functions for typed input ports.
130  // ----------------------------------------------------------------------
131  // Call these functions directly to bypass the corresponding ports.
132  // ----------------------------------------------------------------------
133 
136  void comIn_handlerBase(
139  U32 context
140  );
141 
143 
144  // ----------------------------------------------------------------------
145  // Invocation functions for typed output ports
146  // ----------------------------------------------------------------------
147 
150  void comOut_out(
153  U32 context
154  );
155 
157 
158  // ----------------------------------------------------------------------
159  // Getters for numbers of input ports
160  // ----------------------------------------------------------------------
161 
166  NATIVE_INT_TYPE getNum_comIn_InputPorts(void);
167 
168 
169  // ----------------------------------------------------------------------
170  // Enumerations for number of ports
171  // ----------------------------------------------------------------------
172 
173  enum {
175  };
176 
178 
179  // ----------------------------------------------------------------------
180  // Getters for numbers of output ports
181  // ----------------------------------------------------------------------
182 
187  NATIVE_INT_TYPE getNum_comOut_OutputPorts(void);
188 
189 
190  enum {
192  };
193 
195 
196  // ----------------------------------------------------------------------
197  // Connection status queries for output ports
198  // ----------------------------------------------------------------------
199 
204  bool isConnected_comOut_OutputPort(
206  );
207 
209 
210  // ----------------------------------------------------------------------
211  // Event logging functions
212  // ----------------------------------------------------------------------
213 
214 
215  PRIVATE:
216 
217  // ----------------------------------------------------------------------
218  // Typed input ports
219  // ----------------------------------------------------------------------
220 
223  Fw::InputComPort m_comIn_InputPort[NUM_COMIN_INPUT_PORTS];
224 
226 
227  // ----------------------------------------------------------------------
228  // Typed output ports
229  // ----------------------------------------------------------------------
230 
233  Fw::OutputComPort m_comOut_OutputPort[NUM_COMOUT_OUTPUT_PORTS];
234 
236 
237  // ----------------------------------------------------------------------
238  // Calls for messages received on typed input ports
239  // ----------------------------------------------------------------------
240 
243  static void m_p_comIn_in(
244  Fw::PassiveComponentBase* callComp,
247  U32 context
248  );
249 
250 
251 
252  };
253 
254 } // end namespace Svc
255 #endif
Svc::ComSplitterComponentBase
Auto-generated base for ComSplitter component.
Definition: ComSplitterComponentAc.hpp:30
Svc::ComSplitterComponentBase::NUM_COMIN_INPUT_PORTS
@ NUM_COMIN_INPUT_PORTS
Definition: ComSplitterComponentAc.hpp:174
PRIVATE
#define PRIVATE
overridable private for unit testing
Definition: BasicTypes.hpp:118
Svc::ComSplitterComponentBase::set_comOut_OutputPort
void set_comOut_OutputPort(NATIVE_INT_TYPE portNum, Fw::InputComPort *port)
Definition: ComSplitterComponentAc.cpp:40
ComBuffer.hpp
PROTECTED
#define PROTECTED
overridable protected for unit testing
Definition: BasicTypes.hpp:114
InputSerializePort.hpp
ComPortAc.hpp
Fw::InputComPort
Definition: ComPortAc.hpp:28
Svc::ComSplitterComponentBase::data
PROTECTED Fw::ComBuffer & data
Definition: ComSplitterComponentAc.hpp:122
Fw::PassiveComponentBase
Definition: PassiveComponentBase.hpp:10
Fw::ObjBase::init
void init(void)
Object initializer.
Definition: ObjBase.cpp:26
Svc::ComSplitterComponentBase::ComSplitterComponentBaseFriend
friend class ComSplitterComponentBaseFriend
Definition: ComSplitterComponentAc.hpp:38
ActiveComponentBase.hpp
Svc::ComSplitterComponentBase::NUM_COMOUT_OUTPUT_PORTS
@ NUM_COMOUT_OUTPUT_PORTS
Definition: ComSplitterComponentAc.hpp:191
Fw::OutputComPort
Definition: ComPortAc.hpp:49
Svc::ComSplitterComponentBase::get_comIn_InputPort
Fw::InputComPort * get_comIn_InputPort(NATIVE_INT_TYPE portNum)
Definition: ComSplitterComponentAc.cpp:29
FpConfig.hpp
ISF configuration file.
Svc
Definition: ActiveLoggerComponentAc.cpp:22
Svc::ComSplitterComponentBase::portNum
PRIVATE NATIVE_INT_TYPE portNum
Definition: ComSplitterComponentAc.hpp:245
Svc::ComSplitterComponentBase::context
PROTECTED Fw::ComBuffer U32 context
Definition: ComSplitterComponentAc.hpp:124
Svc::ComSplitterComponentBase::~ComSplitterComponentBase
virtual ~ComSplitterComponentBase(void)
Definition: ComSplitterComponentAc.cpp:147
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition: BasicTypes.hpp:29
Fw::ComBuffer
Definition: ComBuffer.hpp:21
OutputSerializePort.hpp