![]() |
Public API Reference |
This interface is implemented by the trigger that fires when a certain property passes a test on some value. More...
#include <tools/triggers.h>
Public Member Functions | |
| virtual void | SetEntityParameter (const char *entity, const char *tag=0)=0 |
| Set the name of the entity containing the pcproperties property class on which this trigger will fire. | |
| virtual void | SetOnChangeOnly (bool on_change)=0 |
| Set whether the trigger will fire only on an actual change (so the condition has to become true), or whenever the condition is met (even initially). | |
| virtual void | SetOperationParameter (const char *op)=0 |
| Set the operation this trigger will test with. | |
| virtual void | SetPropertyParameter (const char *prop)=0 |
| Set the name of the property on which this trigger will fire. | |
| virtual void | SetValueParameter (const char *value)=0 |
| Set the value of the property on which this trigger will fire. | |
This interface is implemented by the trigger that fires when a certain property passes a test on some value.
Test can be any of the operations below. You can query this interface from the trigger factory if you want to manually control this factory as opposed to loading its definition from an XML document.
The predefined name of this trigger type is 'cel.triggers.propertychange'.
In XML, factories recognize the following attributes on the 'fireon' node:
Valid operations:
Definition at line 383 of file triggers.h.
| virtual void iPropertyChangeTriggerFactory::SetEntityParameter | ( | const char * | entity, |
| const char * | tag = 0 |
||
| ) | [pure virtual] |
Set the name of the entity containing the pcproperties property class on which this trigger will fire.
| entity | is the name of the entity or a parameter (starts with '$'). |
| tag | is the optional tag of the entity or a parameter (starts with '$'). |
| virtual void iPropertyChangeTriggerFactory::SetOnChangeOnly | ( | bool | on_change | ) | [pure virtual] |
Set whether the trigger will fire only on an actual change (so the condition has to become true), or whenever the condition is met (even initially).
| on_change | true for reporting only on change. |
| virtual void iPropertyChangeTriggerFactory::SetOperationParameter | ( | const char * | op | ) | [pure virtual] |
Set the operation this trigger will test with.
If operation is not set equality will be checked.
| op | one of: eq, lt, gt, ne, le, ge. See above for more details. |
| virtual void iPropertyChangeTriggerFactory::SetPropertyParameter | ( | const char * | prop | ) | [pure virtual] |
Set the name of the property on which this trigger will fire.
| prop | is the name of the property or a parameter (starts with '$'). |
| virtual void iPropertyChangeTriggerFactory::SetValueParameter | ( | const char * | value | ) | [pure virtual] |
Set the value of the property on which this trigger will fire.
If this value is not given the the trigger will fire whenever the value changes.
| value | is the value or a parameter (starts with '$'). |