Re: [Alephmodular-devel] Some questions on defining CFileType
Status: Pre-Alpha
Brought to you by:
brefin
From: Woody Z. I. <woo...@sb...> - 2003-01-29 15:36:51
|
Now it's my turn to not follow you so well. :) Perhaps you could illuminate your thinking with a more specific example? (e.g., what's in the Marathon2Type interface? What's in the MapType interface? Explain about the is_a hierarchy.) Woody On Wednesday, January 29, 2003, at 09:07 AM, Br'fin wrote: > On multiply typed elements > After a quick bit of thinking, do we have need for types with multiple > attributes? And how should that be handled? For instance, a > CMarathon2MapType is both a CMapType and a CMarathon2Type. I take this > to mean two possible implementations: > > 1) CMarathon2MapType is a direct subclass of CFileType and implements > IMapType and IMarathon2Type interfaces. > > 2) The is_a hierarchy is maintained in a different way. Like real > attributes on the object. > > I admit, on typing I'm trying to figure out if the class is > C<whatever>Type and is essentially a singleton. What is a decent way of > referring to one specific type or another? > > A CFileTypeFactory that offers GetTypeFor("<whatever>") with a hash or > dictionary within? > > -Jeremy Parsons > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Alephmodular-devel mailing list > Ale...@li... > https://lists.sourceforge.net/lists/listinfo/alephmodular-devel > |