From: Thomas M. <tma...@ze...> - 2000-08-18 13:34:37
|
Here is the layout for what I'm currently working on, not all ideas have been completely fleshed out. BasicDynLib - an abstract base class for loading dynamic libraries. Specific types (linux, windows, hpux, ...) are hidden from the user and selected by defining the correct symbol in UserConfig.h. BasicDynLib* newDynLib() allocates the selected derived class. SOMELibFactory - Manages loaded libraries. Dynamic libraries must have a function vector<SOMEClassInfo>& RegisterClasses() to return information about classes available for use within the library. This will allow packaging of multiple classes within one library. SOMEClassInfo - I'm not sure exactly how this class will work but it will contain the class name, a category/purpose, and (if possible, I think it is) functions for creating instances of the class. I think this would eliminate the need for base classes, like Karl's did. -- Thomas O Matelich Senior Software Designer Zetec, Inc. sos...@us... tma...@ze... |