Next Previous Up Top Contents Index

A.6.3 Defining methods

A.6.3.2 Implementation of the IDL operations

Thecorba:define-method macro is used to define the methods that implement each of the operations defined in the IDL interface. These implementations do not perform any of the argument or range checking that a production system would, of course, perform.

The implementation is free to define other methods on the class, including print-object methods and auxiliary methods forinitialize-instance.

(corba:define-method get_value ((the-grid grid-implementation)
                                  row column)
  (aref (slot-value the-grid 'grid) row column))

(corba:define-method set_value ((the-grid grid-implementation) row column value)) (setf (aref the-grid row column) value))


Developing Component Software with CORBA - 22 Jan 1999

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker