F´ Flight Software - C/C++ Documentation  NASA-v2.0.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
GenericRepeaterComponentImpl.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title GenericRepeaterComponentImpl.cpp
3 // \author joshuaa
4 // \brief cpp file for GenericRepeater component implementation 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 
14 #include "Fw/Types/BasicTypes.hpp"
15 
16 namespace Svc {
17 
18 // ----------------------------------------------------------------------
19 // Construction, initialization, and destruction
20 // ----------------------------------------------------------------------
21 
23  : GenericRepeaterComponentBase(compName) {}
24 
26  GenericRepeaterComponentBase::init(instance);
27 }
28 
30 
31 // ----------------------------------------------------------------------
32 // Handler implementations for user-defined serial input ports
33 // ----------------------------------------------------------------------
34 
35 void GenericRepeaterComponentImpl ::portIn_handler(NATIVE_INT_TYPE portNum,
37 ) {
38  for (NATIVE_INT_TYPE i = 0; i < NUM_PORTOUT_OUTPUT_PORTS; i++) {
39  if (!isConnected_portOut_OutputPort(i)) {
40  continue;
41  }
42 
43  portOut_out(i, Buffer);
44  }
45 }
46 
47 } // end namespace Svc
Fw::SerializeBufferBase
Definition: Serializable.hpp:43
GenericRepeaterComponentImpl.hpp
Svc::GenericRepeaterComponentImpl::init
void init(const NATIVE_INT_TYPE instance=0)
Definition: GenericRepeaterComponentImpl.cpp:25
Svc::GenericRepeaterComponentImpl::GenericRepeaterComponentImpl
GenericRepeaterComponentImpl(const char *const compName)
Definition: GenericRepeaterComponentImpl.cpp:22
Svc
Definition: ActiveRateGroupImplCfg.hpp:18
BasicTypes.hpp
Declares ISF basic types.
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition: BasicTypes.hpp:29
Svc::GenericRepeaterComponentImpl::~GenericRepeaterComponentImpl
~GenericRepeaterComponentImpl(void)
Definition: GenericRepeaterComponentImpl.cpp:29