On 17 Aug 2008, at 16:44, James Turner wrote: > Well, there's a motive here: because I'm using consecutive numbers for > the types, I can implement things like 'all airports' or 'all ATC > frequencies' as range compares, by doing lower_bound and upper_bound > queries against appropriate sets and multipmaps. This scheme doesn't > work perfectly for every kind of type-based query, but it handles a > lot of cases pretty well - right now we tend to want everything of a > certain type (airports is the classic example) or just one specific > type.
Another thing - there's a couple of 'derived' types that don't need to be C++ subclasses - namely FGFix and currently not-extant (but soon) FGUserWaypoint. Both of these can exist soley has FGPositioned directly, with the type identifier, I think. Not that there's any problem with making an 'empty' derived class of course - but equally it's not necessary. James ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

