Dataflow Runtime API
3.1.1.0
|
Test logger for unit test which registers itself as Logger in Runtime and stores the received log entries. More...
#include <Imt.Base.Dff.ActiveParts.Test/TestLoggerAP.h>
Classes | |
struct | LogEntryContainer |
Container which stores the received data. More... | |
Public Member Functions | |
TestLoggerAP (void) | |
Constructor. More... | |
virtual | ~TestLoggerAP (void) |
Destructor. More... | |
virtual void | execute (const uint16_t protocolIdentifier, imt::base::core::serialization::Deserializer &deserializer) |
bool | hasLogs (void) const |
Check if at least one log entry is available. More... | |
uint32_t | getLogCount (void) const |
Returns the currently available log entries count. More... | |
const std::vector< LogEntryContainer > & | getLogEntries (void) const |
Returns the log entries buffer. More... | |
void | popLogEntry (void) |
Pops the oldest log entry from the buffer if one is available. More... | |
Public Member Functions inherited from imt::base::dff::activeparts::ActivePartAbs | |
ActivePartAbs (const imt::base::dff::runtime::RuntimePriority::Id priority, const imt::base::dff::runtime::ExecutableConfiguration executableConfiguration=imt::base::dff::runtime::ExecutableConfiguration()) | |
Constructor. More... | |
virtual | ~ActivePartAbs (void) |
Destructor. More... | |
virtual const imt::base::dff::runtime::ExecutableConfiguration & | getExecutableConfiguration (void) const |
virtual imt::base::dff::runtime::RuntimePriority::Id | getPriority (void) const |
void | initialize (void) |
Initialize the active part. More... | |
void | start (void) |
Start the active part. More... | |
bool | isInitialized (void) const |
Check if active part is initialized. More... | |
bool | isStarted (void) const |
Check if active part is started. More... | |
virtual void | startOneShotTimer (imt::base::dff::runtime::RuntimeTimer::TimerHandle &timerToStart, const uint32_t timerTicksMs) const |
Starts or restarts the given one shot timer for this active part. More... | |
virtual void | startPeriodicTimer (imt::base::dff::runtime::RuntimeTimer::TimerHandle &timerToStart, const uint32_t intervalMs) const |
Start a periodic timer for this active part. More... | |
virtual void | killTimer (imt::base::dff::runtime::RuntimeTimer::TimerHandle &timerToKill) const |
Kill the given timer (if required). More... | |
Public Member Functions inherited from imt::base::dff::runtime::ExecutableIfc | |
virtual | ~ExecutableIfc (void) |
Destructor. More... | |
Public Member Functions inherited from imt::base::dff::runtime::TimerServiceIfc | |
virtual | ~TimerServiceIfc (void) |
Destructor. More... | |
Protected Member Functions | |
virtual void | onInitialize (void) |
virtual void | onStart (void) |
Additional Inherited Members | |
Public Attributes inherited from imt::base::dff::activeparts::ActivePartAbs | |
const PortInput & | PortIn |
Input Port of the active part (as a public visible read-only reference). More... | |
Test logger for unit test which registers itself as Logger in Runtime and stores the received log entries.
|
explicit |
Constructor.
|
virtual |
Destructor.
|
virtual |
Implements imt::base::dff::runtime::ExecutableIfc.
uint32_t imt::base::dff::activeparts::test::TestLoggerAP::getLogCount | ( | void | ) | const |
Returns the currently available log entries count.
const std::vector<LogEntryContainer>& imt::base::dff::activeparts::test::TestLoggerAP::getLogEntries | ( | void | ) | const |
Returns the log entries buffer.
bool imt::base::dff::activeparts::test::TestLoggerAP::hasLogs | ( | void | ) | const |
Check if at least one log entry is available.
|
protectedvirtual |
Implements imt::base::dff::activeparts::ActivePartAbs.
|
protectedvirtual |
Implements imt::base::dff::activeparts::ActivePartAbs.
void imt::base::dff::activeparts::test::TestLoggerAP::popLogEntry | ( | void | ) |
Pops the oldest log entry from the buffer if one is available.