QuercusVL Programming Manual
if(detector.get_Type() == DT_PRESENCE)
{
PresenceDetector myPresenceDetector;
myPresenceDetector = detector;
// assignment operator
ProcessPresenceDetector(myPresenceDetector);
}
Example in C
if(Detector_get_Type(hDetector) == PRESENCE)
{
ProcessPresenceDetector(hDetector);
}
3.12. QueueDetector Class
Logic representation of a detector of
queue
type.
This class derives from Detector class, so all its methods and properties are inherited.
It has implemented the assignment operator to use a generic detector as a
queue
detector.
Example in C++
if(detector.get_Type() == DT_QUEUE)
{
QueueDetector myQueueDetector;
myQueueDetector = detector;
// assignment operator
ProcessQueueDetector(myQueueDetector);
}
Example in C
if(Detector_get_Type(hDetector) == DT_QUEUE)
{
ProcessQueueDetector(hDetector);
}
3.13. SpeedDetector Class
Logic representation of a detector of
speed
type.
This class derives from Detector class, so all its methods and properties are inherited.
It has implemented the assignment operator to use a generic detector as a
speed
detector.
Example in C++
if(detector.get_Type() == DT_SPEED)
{
Quercus Technologies
44