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

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

#include <Svc/ActiveTextLogger/ActiveTextLoggerComponentAc.hpp>

Inheritance diagram for Svc::ActiveTextLoggerComponentBase:
Fw::ActiveComponentBase Fw::QueuedComponentBase Fw::PassiveComponentBase Fw::ObjBase Svc::ActiveTextLogger

Public Member Functions

void init (NATIVE_INT_TYPE queueDepth, NATIVE_INT_TYPE instance=0)
 Initialize ActiveTextLoggerComponentBase object. More...
 
Fw::InputLogTextPortget_TextLogger_InputPort (NATIVE_INT_TYPE portNum)
 
- Public Member Functions inherited from Fw::ActiveComponentBase
void start (NATIVE_UINT_TYPE priority=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE stackSize=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE cpuAffinity=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE identifier=Os::Task::TASK_DEFAULT)
 called by instantiator when task is to be started More...
 
 DEPRECATED (void start(NATIVE_INT_TYPE identifier, NATIVE_INT_TYPE priority, NATIVE_INT_TYPE stackSize, NATIVE_INT_TYPE cpuAffinity=-1), "Please switch to start(NATIVE_UINT_TYPE priority, NATIVE_UINT_TYPE stackSize, NATIVE_UINT_TYPE cpuAffinity, NATIVE_UINT_TYPE identifier)")
 called by instantiator when task is to be started More...
 
void exit ()
 exit task in active component More...
 
Os::Task::TaskStatus join (void **value_ptr)
 provide return value of thread if value_ptr is not NULL More...
 
- Public Member Functions inherited from Fw::PassiveComponentBase
void setIdBase (const U32)
 Set the ID base. More...
 
U32 getIdBase () const
 

Protected Types

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

Protected Member Functions

 ActiveTextLoggerComponentBase (const char *compName="")
 Construct ActiveTextLoggerComponentBase object. More...
 
virtual ~ActiveTextLoggerComponentBase ()
 Destroy ActiveTextLoggerComponentBase object. More...
 
NATIVE_INT_TYPE getNum_TextLogger_InputPorts () const
 
virtual void TextLogger_handler (NATIVE_INT_TYPE portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::TextLogString &text)=0
 Handler for input port TextLogger. More...
 
void TextLogger_handlerBase (NATIVE_INT_TYPE portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::TextLogString &text)
 Handler base-class function for input port TextLogger. More...
 
virtual void TextQueue_internalInterfaceHandler (const Fw::InternalInterfaceString &text)=0
 Internal interface handler for TextQueue. More...
 
void TextQueue_internalInterfaceInvoke (const Fw::InternalInterfaceString &text)
 Internal interface base-class function for TextQueue. More...
 
- Protected Member Functions inherited from Fw::ActiveComponentBase
 ActiveComponentBase (const char *name)
 Constructor. More...
 
virtual ~ActiveComponentBase ()
 Destructor. More...
 
void init (NATIVE_INT_TYPE instance)
 initialization code More...
 
virtual void preamble ()
 A function that will be called before the event loop is entered. More...
 
virtual void loop ()
 The function that will loop dispatching messages. More...
 
virtual void finalizer ()
 A function that will be called after exiting the loop. More...
 
- Protected Member Functions inherited from Fw::QueuedComponentBase
 QueuedComponentBase (const char *name)
 Constructor. More...
 
virtual ~QueuedComponentBase ()
 Destructor. More...
 
void init (NATIVE_INT_TYPE instance)
 initialization function More...
 
Os::Queue::QueueStatus createQueue (NATIVE_INT_TYPE depth, NATIVE_INT_TYPE msgSize)
 
NATIVE_INT_TYPE getNumMsgsDropped ()
 return number of messages dropped More...
 
void incNumMsgDropped ()
 increment the number of messages dropped More...
 
- Protected Member Functions inherited from Fw::PassiveComponentBase
 PassiveComponentBase (const char *name)
 Named constructor. More...
 
virtual ~PassiveComponentBase ()
 Destructor. More...
 
void init (NATIVE_INT_TYPE instance)
 Initialization function. More...
 
NATIVE_INT_TYPE 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 ActiveTextLoggerComponentBaseFriend
 Friend class for white-box testing. More...
 

Additional Inherited Members

- Public Types inherited from Fw::ActiveComponentBase
enum  { ACTIVE_COMPONENT_EXIT }
 
- Public Types inherited from Fw::QueuedComponentBase
enum  MsgDispatchStatus { MSG_DISPATCH_OK , MSG_DISPATCH_EMPTY , MSG_DISPATCH_ERROR , MSG_DISPATCH_EXIT }
 
- Protected Attributes inherited from Fw::ActiveComponentBase
Os::Task m_task
 task object for active component More...
 
- Protected Attributes inherited from Fw::QueuedComponentBase
Os::Queue m_queue
 queue object for active component More...
 

Detailed Description

Auto-generated base for ActiveTextLogger component.

A component for printing text logs to the console and optionally a file

Definition at line 25 of file ActiveTextLoggerComponentAc.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed input ports.

Enumerator
NUM_TEXTLOGGER_INPUT_PORTS 

Definition at line 43 of file ActiveTextLoggerComponentAc.hpp.

Constructor & Destructor Documentation

◆ ActiveTextLoggerComponentBase()

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

Construct ActiveTextLoggerComponentBase object.

Parameters
compNameThe component name

Definition at line 141 of file ActiveTextLoggerComponentAc.cpp.

◆ ~ActiveTextLoggerComponentBase()

Svc::ActiveTextLoggerComponentBase::~ActiveTextLoggerComponentBase ( )
protectedvirtual

Destroy ActiveTextLoggerComponentBase object.

Definition at line 148 of file ActiveTextLoggerComponentAc.cpp.

Member Function Documentation

◆ get_TextLogger_InputPort()

Fw::InputLogTextPort * Svc::ActiveTextLoggerComponentBase::get_TextLogger_InputPort ( NATIVE_INT_TYPE  portNum)

Get typed input port at index

Returns
TextLogger[portNum]
Parameters
portNumThe port number

Definition at line 126 of file ActiveTextLoggerComponentAc.cpp.

◆ getNum_TextLogger_InputPorts()

NATIVE_INT_TYPE Svc::ActiveTextLoggerComponentBase::getNum_TextLogger_InputPorts ( ) const
protected

Get the number of TextLogger input ports

Returns
The number of TextLogger input ports

Definition at line 158 of file ActiveTextLoggerComponentAc.cpp.

◆ init()

void Svc::ActiveTextLoggerComponentBase::init ( NATIVE_INT_TYPE  queueDepth,
NATIVE_INT_TYPE  instance = 0 
)

Initialize ActiveTextLoggerComponentBase object.

Parameters
queueDepthThe queue depth
instanceThe instance number

Definition at line 71 of file ActiveTextLoggerComponentAc.cpp.

◆ TextLogger_handler()

virtual void Svc::ActiveTextLoggerComponentBase::TextLogger_handler ( NATIVE_INT_TYPE  portNum,
FwEventIdType  id,
Fw::Time timeTag,
const Fw::LogSeverity severity,
Fw::TextLogString text 
)
protectedpure virtual

Handler for input port TextLogger.

Parameters
portNumThe port number
idLog ID
timeTagTime Tag
severityThe severity argument
textText of log message

◆ TextLogger_handlerBase()

void Svc::ActiveTextLoggerComponentBase::TextLogger_handlerBase ( NATIVE_INT_TYPE  portNum,
FwEventIdType  id,
Fw::Time timeTag,
const Fw::LogSeverity severity,
Fw::TextLogString text 
)
protected

Handler base-class function for input port TextLogger.

Parameters
portNumThe port number
idLog ID
timeTagTime Tag
severityThe severity argument
textText of log message

Definition at line 170 of file ActiveTextLoggerComponentAc.cpp.

◆ TextQueue_internalInterfaceHandler()

virtual void Svc::ActiveTextLoggerComponentBase::TextQueue_internalInterfaceHandler ( const Fw::InternalInterfaceString text)
protectedpure virtual

Internal interface handler for TextQueue.

Parameters
textThe text string

◆ TextQueue_internalInterfaceInvoke()

void Svc::ActiveTextLoggerComponentBase::TextQueue_internalInterfaceInvoke ( const Fw::InternalInterfaceString text)
protected

Internal interface base-class function for TextQueue.

Parameters
textThe text string

Definition at line 199 of file ActiveTextLoggerComponentAc.cpp.

Friends And Related Function Documentation

◆ ActiveTextLoggerComponentBaseFriend

friend class ActiveTextLoggerComponentBaseFriend
friend

Friend class for white-box testing.

Definition at line 34 of file ActiveTextLoggerComponentAc.hpp.


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