QuercusVL Programming Manual
●
Lights
C++:
Lights get_Lights()
C:
Does not exist
In C++ returns the collection of lights that make up the traffic light.
In C there is no representation of “Lights” collection, but methods to directly access to
collection properties:
●
int VL_TrafficLight_get_Lights_Count(int h): number of lights in the traffic light.
●
int VL_TrafficLight_get_Lights_Item(int h, int item): returns the light in the
specified position, inside the lights collection of the traffic light (starting from
zero).
If there is no Light for the specified ligt, returns null.
The parameter “h” is a handler of the traffic light (TrafficLight).
3.17.2. Methods
●
IsValid
C++:
bool IsValid()
C:
Does not exist
Returns true if the object contains valid information about a traffic light, and false if
invalid. Some methods, may sometimes, return void traffic lights. In C, this behaviour
is detected as its value will be “0”. In C++, however, this method is necessary because
the object, as it is not a pointer, would always be valid.
●
AddRef
C++:
Does not exist
C:
void VL_TrafficLight_AddRef ( int h )
See 2.2.1. Memory management.
●
Release
C++:
Does not exist
C:
void VL_TrafficLight_Release ( int h )
See 2.2.1. Memory management.
Quercus Technologies
52