F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Svc::ChronoTimeComponentBase Class Referenceabstract

Auto-generated base for ChronoTime component. More...

#include <Svc/ChronoTime/ChronoTimeComponentAc.hpp>

Inheritance diagram for Svc::ChronoTimeComponentBase:
Fw::PassiveComponentBase Fw::ObjBase Svc::ChronoTime

Public Member Functions

void init (FwEnumStoreType instance=0)
 Initialize ChronoTimeComponentBase object. More...
 
Fw::InputTimePortget_timeGetPort_InputPort (FwIndexType portNum)
 
- Public Member Functions inherited from Fw::PassiveComponentBase
void setIdBase (const U32)
 Set the ID base. More...
 
U32 getIdBase () const
 

Protected Types

enum  { NUM_TIMEGETPORT_INPUT_PORTS = 1 }
 Enumerations for numbers of typed input ports. More...
 

Protected Member Functions

 ChronoTimeComponentBase (const char *compName="")
 Construct ChronoTimeComponentBase object. More...
 
virtual ~ChronoTimeComponentBase ()
 Destroy ChronoTimeComponentBase object. More...
 
FwIndexType getNum_timeGetPort_InputPorts () const
 
virtual void timeGetPort_handler (FwIndexType portNum, Fw::Time &time)=0
 Handler for input port timeGetPort. More...
 
void timeGetPort_handlerBase (FwIndexType portNum, Fw::Time &time)
 Handler base-class function for input port timeGetPort. More...
 
- Protected Member Functions inherited from Fw::PassiveComponentBase
 PassiveComponentBase (const char *name)
 Named constructor. More...
 
virtual ~PassiveComponentBase ()
 Destructor. More...
 
void init (FwEnumStoreType instance)
 Initialization function. More...
 
FwEnumStoreType getInstance () const
 
- Protected Member Functions inherited from Fw::ObjBase
 ObjBase (const char *name)
 ObjBase constructor. More...
 
virtual ~ObjBase ()
 Destructor. More...
 
void init ()
 Object initializer. More...
 

Friends

class ChronoTimeComponentBaseFriend
 Friend class for white-box testing. More...
 
class ChronoTimeTesterBase
 Friend class tester to support autocoded test harness. More...
 

Detailed Description

Auto-generated base for ChronoTime component.

A time component using C++11 chrono library

Definition at line 22 of file ChronoTimeComponentAc.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed input ports.

Enumerator
NUM_TIMEGETPORT_INPUT_PORTS 

Definition at line 42 of file ChronoTimeComponentAc.hpp.

Constructor & Destructor Documentation

◆ ChronoTimeComponentBase()

Svc::ChronoTimeComponentBase::ChronoTimeComponentBase ( const char *  compName = "")
protected

Construct ChronoTimeComponentBase object.

Parameters
compNameThe component name

Definition at line 71 of file ChronoTimeComponentAc.cpp.

◆ ~ChronoTimeComponentBase()

Svc::ChronoTimeComponentBase::~ChronoTimeComponentBase ( )
protectedvirtual

Destroy ChronoTimeComponentBase object.

Definition at line 78 of file ChronoTimeComponentAc.cpp.

Member Function Documentation

◆ get_timeGetPort_InputPort()

Fw::InputTimePort * Svc::ChronoTimeComponentBase::get_timeGetPort_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
timeGetPort[portNum]
Parameters
portNumThe port number

Definition at line 56 of file ChronoTimeComponentAc.cpp.

◆ getNum_timeGetPort_InputPorts()

FwIndexType Svc::ChronoTimeComponentBase::getNum_timeGetPort_InputPorts ( ) const
protected

Get the number of timeGetPort input ports

Returns
The number of timeGetPort input ports

Definition at line 88 of file ChronoTimeComponentAc.cpp.

◆ init()

void Svc::ChronoTimeComponentBase::init ( FwEnumStoreType  instance = 0)

Initialize ChronoTimeComponentBase object.

Parameters
instanceThe instance number

Definition at line 21 of file ChronoTimeComponentAc.cpp.

◆ timeGetPort_handler()

virtual void Svc::ChronoTimeComponentBase::timeGetPort_handler ( FwIndexType  portNum,
Fw::Time time 
)
protectedpure virtual

Handler for input port timeGetPort.

Parameters
portNumThe port number
timeReference to Time object

◆ timeGetPort_handlerBase()

void Svc::ChronoTimeComponentBase::timeGetPort_handlerBase ( FwIndexType  portNum,
Fw::Time time 
)
protected

Handler base-class function for input port timeGetPort.

Parameters
portNumThe port number
timeReference to Time object

Definition at line 100 of file ChronoTimeComponentAc.cpp.

Friends And Related Function Documentation

◆ ChronoTimeComponentBaseFriend

friend class ChronoTimeComponentBaseFriend
friend

Friend class for white-box testing.

Definition at line 31 of file ChronoTimeComponentAc.hpp.

◆ ChronoTimeTesterBase

friend class ChronoTimeTesterBase
friend

Friend class tester to support autocoded test harness.

Definition at line 33 of file ChronoTimeComponentAc.hpp.


The documentation for this class was generated from the following files: