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?

Definition at line 31 of file ContractDelegate.hh.

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.

Definition at line 24 of file ContractDelegate.cc.

References require.


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.

Definition at line 45 of file ContractDelegate.cc.

References cd_Contract, and BasicDelegate::postcall().

Here is the call graph for this function:

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.

Definition at line 35 of file ContractDelegate.cc.

References cd_Contract, BasicDelegate::precall(), and rk_stub_precall_retval_t.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Mon Dec 1 16:30:32 2003 for CPU Broker by doxygen 1.3.4