Roger Keays wrote:

> Hello all,
> 
> Is it possible to get xpidl to automatically generate the attributes for 
> a class, not just the method names? This would be an optional feature of 
> course - could we make xpidl fill in the transparent getter and setter 
> methods for us?


There are some macros to help out but xpidl wasn't really
meant to be a code generator.

IMHO, extending the xpidl language to support this would
mean putting too much implementing details into what is
supposed to be an interface description, not an implementation
description.

The current trend seems to be in the other direction such as
eliminating the %C style includes.

There could be (and often are) many different implementations
for a given interface. One implementation uses the attribute
getter/setter functions to access an actual private data
member while in another implementation the values are
computed or synthesized from data elsewhere.

Good luck,
Rick


Reply via email to