bkloppenborg / simtoi

The SImulation and Modeling Tool for Optical Interferometry
GNU General Public License v3.0
7 stars 6 forks source link

Change model/position base class stucture #74

Closed bkloppenborg closed 10 years ago

bkloppenborg commented 10 years ago

After implementing the new CFeature class and factory function, I think it is better to declare the GetID() function to be virtual static in the base class and let each subclass of CModel and CPosition override it.

bkloppenborg commented 10 years ago

The getID function is now part of the CParameterMap class. Although I thought this was a good idea, I neglected to notice we can't have a virtual static function in the base class (for reasons which should have been obvious at the time).