[Alephmodular-devel] Some questions on defining CFileType
Status: Pre-Alpha
Brought to you by:
brefin
|
From: Br'fin <br...@ma...> - 2003-01-29 15:07:15
|
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
|