Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SmartSockets::OptionChangeCallBack Class Reference

#include <toption.h>

List of all members.

Public Types

typedef void(OptionChangeCallBack::* Handler )(CallBack< OptionChangeCallBack > *callBack, void *newVal, Option &opt)

Public Methods

virtual void onChange (CallBack< OptionChangeCallBack > *callBack, void *newVal, Option &opt)


Detailed Description

Base class for all option change callback methods used in Option::optionChangeCbCreate().


Member Typedef Documentation

typedef void(OptionChangeCallBack::* SmartSockets::OptionChangeCallBack::Handler)( CallBack < OptionChangeCallBack > * callBack, void* newVal, Option & opt)
 

Signature for the method implementing the OptionChangeCallBack

Parameters:
callBack  pointer to a Callback that allows one to get arguments, change the priority, or unregister (destroy) this callback.
newVal  the new value assigned to this option; use Option::getType() to cast this appropriately.
opt  option that was just changed (with the new value set).


Member Function Documentation

virtual void SmartSockets::OptionChangeCallBack::onChange CallBack< OptionChangeCallBack > *    callBack,
void *    newVal,
Option   opt
[virtual]
 

Default implementation of the callback method.

Parameters:
callBack  pointer to a Callback that allows one to get arguments, change the priority, or unregister (destroy) this callback.
newVal  the new value assigned to this option; use Option::getType() to cast this appropriately.
opt  option that was just changed (with the new value set).


The documentation for this class was generated from the following file:
Generated on Fri Jul 14 15:05:55 2006 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001