First off, to clear some confusion, by 'module based program with intelligent linking' I mean having an adapter class intelligently inherit individual header files through a 'plug-n-play' type system. This system needs to consist of a simple folder called for example 'Modules', and all that the user needs to do to activate a module is drag and drop the header and source file of that module into the folder. I believe that I will need to utilize some scripting language to generate required text, such as #include
s, in the adapter file. Also I do not know much about Dynamic Link Libraries, but I would prefer to use them if possible (They would need to produce the same effect of course).
For an example, lets say I have my main here:
moduleAdapter->Initialize();
while (true)
{
moduleAdapter->Update();
moduleAdapter->Render();
}
moduleAdapter->Release();
This loop should be able to pass update and render function calls to all of the linked modules.
Next, an example empty module file called 'module0.h', I could have something like this:
class Module0
{
public:
void Initialize();
void Update();
void Render();
void Release();
}
I am targeting Windows, but multi platform would be great. That said, any scripting language that would work on at least Windows, OSX, and Unix would be perfect.
What I need and don't understand how to do is this; What can I make/do for an 'adapter' that manages the modules and processes their input and output, and what kind of script could I make and use to do this. I am assuming that I will need the script to manually edit the files to write in the #include
s and such.
Thank you in advance.