SCL
1.0
Standard Control Library : Control, dynamics, physics, and simulation
|
#include <CRegisteredCallbacks.hpp>
Public Member Functions | |
virtual void | call (ArgumentTuple &args)=0 |
virtual CCallbackBase< Idx, ArgumentTuple, Data > * | createObject ()=0 |
virtual bool | registerCallback (const Idx &arg_callback_name, Data *arg_data=0) |
virtual | ~CCallbackBase () |
Protected Member Functions | |
CCallbackBase () | |
virtual bool | registerCallbackSuper (const Idx &arg_callback_name, CCallbackSuperBase *arg_obj) |
Protected Attributes | |
Data * | data_ |
Private Member Functions | |
CCallbackBase (const CCallbackBase &) | |
CCallbackBase & | operator= (const CCallbackBase &) |
This enables supporting dynamic typing for arbitrary index and object callbacks.
|
inlinevirtual |
Default Destructor : Does nothing
|
inlineprotected |
Only a subclass may create an object of this type
|
pure virtual |
A subclass must implement this function. You can choose to add a "return type" into the ArgumentTuple and get data from the function.
Implemented in scl::CCallbackIncrement, scl::CCallbackDecrement, scl::CCallbackHelp, scl::CCallbackSet, scl::CCallbackPrint, and scl::CCallbackEcho.
|
pure virtual |
A subclass must implement this function
Implemented in scl::CCallbackIncrement, scl::CCallbackDecrement, scl::CCallbackHelp, scl::CCallbackSet, scl::CCallbackPrint, and scl::CCallbackEcho.
|
inlineprotectedvirtualinherited |
To allow the callback registry to create objects for itself