LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
ValueChangeEvent< T > Class Template Reference

Event that fires when a variable changes to a value. More...

#include <ValueChangeEvent.h>

Inheritance diagram for ValueChangeEvent< T >:
Collaboration diagram for ValueChangeEvent< T >:

Public Member Functions

virtual bool CheckCondition ()
 Checks if the condition required to fire this event is met, regardless of the last cycle.
 
- Public Member Functions inherited from Event
virtual bool Fired ()
 Checks if the event fired this cycle (condition not true last cycle but true this cycle).
 
virtual void Update ()
 Updates the event. Should be called at the end of the cycle.
 
void AddStartListener (Automation *routine)
 Adds an automation routine to be started when this event fires.
 
void AddAbortListener (Automation *routine)
 Adds an automation routine to be aborted when this event fires.
 
void AddContinueListener (Automation *routine)
 Adds an automation routine to be continued when this event fires.
 
std::vector< Automation * > & GetStartListeners ()
 Gets the automation routines that are started by this event.
 
std::vector< Automation * > & GetAbortListeners ()
 Gets the automation routines that are aborted by this event.
 
std::vector< Automation * > & GetContinueListeners ()
 Gets the automation routines that are continued by this event.
 

Detailed Description

template<typename T>
class ValueChangeEvent< T >

Event that fires when a variable changes to a value.

Member Function Documentation

template<typename T >
bool ValueChangeEvent< T >::CheckCondition ( )
virtual

Checks if the condition required to fire this event is met, regardless of the last cycle.

Returns
if the condition is met

Implements Event.


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