From: Christian B. <cb...@th...> - 2002-03-18 14:19:49
|
Hi! On Mon, Mar 18, 2002 at 10:13:43AM +1100, Nigel Pearson wrote: > 1) Can I somehow subclass monitor_desc it in this situation? You _have_ to subclass it, as it is an abstract base class. > 2) Would the definition of this vector have to be in video_<host>.cpp > to enable me to subclass it? The vector<monitor_desc *> (or map<>) would be in video.cpp. This doesn't interfere with subclassing (that's why it uses pointers, not monitor_desc themselves). > b) Preventing having to search through stuff is why I would like to add > a generic platform-specific field into the two video struct/classes You could map<> your resolution_id. Bye, Christian -- / Coding on PowerPC and proud of it \/ http://www.uni-mainz.de/~bauec002/ |