From: Bruce W. <wi...@ch...> - 2005-05-07 17:30:58
|
Gregg Liming wrote: > xAP_Items.pm objects. My current thought is to consider introducing > another property and/or method that lists the "current" section(s) set > by the last applicable xAP message. Brunce--your thoughts here? Brunce finally responds :) We currently store which xAP/xPL sections had changes in a 'changed' index. Here is one of the relevent code lines: # Monitor what changed (real data, not hbeat). $$o{changed} .= "$section : $key = $value | " If there was not state var specified in the object definition, then state (and state_now) will default to returning the changed data. If you wanted something easier to query, maybe we should extend the state_now method to allow for an optional section option. If you think thats a good idea, feel free to add that. Or let me know and I can add it. Bruce |