Odyssey::CallablePropertyLink Class Reference

Delegates the linking of properties to a callable. More...

#include <PropertyLink.h>

Inheritance diagram for Odyssey::CallablePropertyLink:

Odyssey::PropertyLink List of all members.

Public Member Functions

 CallablePropertyLink (Callable proc)
 Constructs the link with the given callable as the target.
void link (PropertyProxy &parent, PropertyProxy &child)
 Calls the set callable to perform the actual property linking.

Detailed Description

Delegates the linking of properties to a callable.

This class delegates the linking of two properties to a callable object. This allows for external "hooking" into the link process.

The callable object must have the given function signature: Variable func(const Variable&) You can, of course, prototype the function to take concrete argument types and allow the callable to do the conversions, but the above signature is the most general. The argument will be the value of the parent property, and the callable should return the value to be assigned to the child property.


Constructor & Destructor Documentation

Odyssey::CallablePropertyLink::CallablePropertyLink Callable  proc  ) 
 

Constructs the link with the given callable as the target.


Member Function Documentation

void Odyssey::CallablePropertyLink::link PropertyProxy parent,
PropertyProxy child
[virtual]
 

Calls the set callable to perform the actual property linking.

Implements Odyssey::PropertyLink.


The documentation for this class was generated from the following file:
Generated on Sun Jan 7 01:18:53 2007 for Odyssey Meta-Engine by  doxygen 1.4.6-NO