Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

ContractDelegate Class Reference

Inheritance diagram for ContractDelegate:

Inheritance graph
[legend]
Collaboration diagram for ContractDelegate:

Collaboration graph
[legend]
List of all members.

Detailed Description

A BasicDelegate that will evaluate a QuO contract during a precall/postcall.

XXX Make a template?


Public Member Functions

 ContractDelegate (quo::Contract_ptr contract, const char *name, unsigned long period, unsigned long deadline)
 Construct a ContractDelegate with the given values.

virtual rk_stub_precall_retval_t precall (void)
 The premethod callback.

virtual void postcall (void)
 The postmethod callback.


Private Attributes

quo::Contract_var cd_Contract
 The contract to evaluate.


Constructor & Destructor Documentation

ContractDelegate::ContractDelegate quo::Contract_ptr  contract,
const char *  name,
unsigned long  period,
unsigned long  deadline
 

Construct a ContractDelegate with the given values.

Parameters:
contract The contract to evaluate.
name The name value to pass to BasicDelegate's constructor.
period The period value to pass to BasicDelegate's constructor.
deadline The deadline value to pass to BasicDelegate's constructor.


Member Function Documentation

void ContractDelegate::postcall void   )  [virtual]
 

The postmethod callback.

This implementation will evaluate the contract, call the parent method, and evaluate the contract again.

See also:
BasicDelegate::postcall

Reimplemented from BasicDelegate.

rk_stub_precall_retval_t ContractDelegate::precall void   )  [virtual]
 

The premethod callback.

This implementation will evaluate the contract, call the parent method, and evaluate the contract again.

See also:
BasicDelegate::precall

Reimplemented from BasicDelegate.


The documentation for this class was generated from the following files:
Generated on Mon Dec 1 16:22:38 2003 for CPUBroker by doxygen 1.3.4