Re: Properties Shared Amongst Objects



On Sun, 17 Feb 2008 03:22:37 -0600, Leslie Sanford wrote:

[...]

In some cases components need to know when a property changes value. I've
set up a simple implementation of Observer so that components can hook into
properties in order to receive notification of value changes.

I'm looking for comments or insights into the above approach. Also, are
there any sources that describe an approach similar to the above?

This looks like a middleware. The property is a middleware variable/object.
The components share/use some variables. These are referenced through
handles to. Your SmoothProperty would be an implementation of the variable
interface. In middleware we call it driver, and filtering is performed by
the driver of virtual (computed) channels. Variables have some standard
services like get/set value, notification upon change etc. It is not that
simple as it looks in your case, but I think that your example was
simplified too.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.



Relevant Pages

  • RE: Device driver load/unload notifications
    ... notification for every StreamDevice driver which is in the system. ... you'll get only the notification for your special device. ... if you use your own guid or the DEVCLASS_STREAM_GUID. ... When stream driver A is being loaded and unloaded, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: communication from a dd to an application
    ... >>Signals are good if you have no requisite data to pass along with the ... >>Creating a ioctl in your device driver that an application thread can ... >>of associated data with the event notification. ...
    (comp.os.linux.development.system)
  • Re: USB unplug notification
    ... The reason why you can receive notification from OS is driver info OS the ... If you look at driver. ... there seems to be NO hardware cable detection in COM port by ... under Windows CE message will not appear here! ...
    (microsoft.public.windowsce.embedded)
  • Re: Merge I2O patches from -mm
    ... I had this before, but i want the notification also for I2O devices, ... are already occupied by a other driver. ... Markus Lidel ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: KeDelayExecutionThread not waiting
    ... The driver device object type is FILE_DEVICE_UNKNOWN. ... When there is a notification to send, this is placed in the device extension ... extension to the IRP Stack Location, for transfer to the user-mode process. ...
    (microsoft.public.development.device.drivers)