Trax3 3.1.0
trax track library
Loading...
Searching...
No Matches
TestSignalTarget Class Reference
Inheritance diagram for TestSignalTarget:

Public Member Functions

bool Notify (const trax::Signal &, dim::Length) override
 Method called to notify about a signalling state.
void Active (bool bActive) noexcept override
 Switches the target on or off to receive notifications from signals.
bool Active () const noexcept override
Public Member Functions inherited from trax::SignalTarget
 SignalTarget (const SignalTarget &)=delete
 SignalTarget (SignalTarget &&)=delete
SignalTarget & operator= (const SignalTarget &)=delete
SignalTarget & operator= (SignalTarget &&)=delete

Public Attributes

bool m_bNotifyFlag = false

Member Function Documentation

◆ Active() [1/2]

bool TestSignalTarget::Active ( ) const
inlineoverridevirtualnoexcept
Returns
Activity state of the target.

Implements trax::SignalTarget.

◆ Active() [2/2]

void TestSignalTarget::Active ( bool bActive)
inlineoverridevirtualnoexcept

Switches the target on or off to receive notifications from signals.

Parameters
bActivetrue to receive, the default.

Implements trax::SignalTarget.

◆ Notify()

bool TestSignalTarget::Notify ( const trax::Signal & signal,
dim::Length distance )
inlineoverridevirtual

Method called to notify about a signalling state.

Parameters
signalReference to signal that notifies.
distanceThe distance from the location the SignalTarget is moved with up to the head of the signal range.
Returns
true if the movement along the track should get calculated, false if this is supposed to stop, because the train was relocated by the Notify function.

Implements trax::SignalTarget.


The documentation for this class was generated from the following file:
  • C:/Trend/Development/Trax3/Code/trax/support/Fixtures.h